I need to record raw 8-bit mono audio from a generic sound card on MS-Windows.
I need to do something like this:
sound_device = open audio device
buffer = sound_device.read ('1 second, 8 bit, mono, 8 KHz')
If possible I would also like to experiment with sampling the raw audio
in my own loop. For example, something like this:
open audio device
read byte from audio device
(I realize that Python is probably not ideal for this sort of DSP, but
I figure that it should handle 8KHz mono with no problem).
Does anyone have any experience with recording sound using the WIN32 API?
Can you point me in the right direction?
The OSS stuff in Python looks ideal, but unfortunately that's
a UNIX only thing :-(
Any hints are appreciated.