1 # Record mono 16bits samples from the audio device and send them to stdout.
2 # Assume the sampling rate is compatible.
3 # Use a small queue size to minimize delays.
13 c
.setchannels(AL
.MONO
)
15 p
= al
.openport('', 'r', c
)
17 data
= p
.readsamps(BUFSIZE
)
18 sys
.stdout
.write(data
)
22 except KeyboardInterrupt: