I'm having a weird problem with PyAudio. I'm trying to record, but I'm getting a lot of buffer overflows. The sound card doesn't support 16000hz (or at least PyAudio says it doesn't), so I can't reduce the quality. But even though I'm using the call back, the buffer isn't cleared fast enough
try reading larger chunks of data at a time