Open Gerekt opened 2 years ago
I don't know, those are error messages from the underlying PortAudio library.
You could try the PortAudio example programs to see if they cause the same errors.
You could also try the blocking API instead of the callback API (which is used internally by sd.rec()
).
You could also ask the PortAudio community: http://portaudio.com/contacts.html
Enviroment: Raspberry Pi OS 64 bit Sounddevice version: 1246720 PortAudio V19.6.0-devel, (0.4.4) Python verison: 3.9.2 Platform: Raspberry Pi 4B with IQ audioCodec Zero HAT(Can record and play audio)
Im having a problem when trying to use the HAT for recording (or playing) with the sounddevice library. When trying to run one of the example scripts from the documentation, the following error occurs:
Which gives the output:
The most logical explanation would be that i have not configured the IQaudio HAT correctly, however when i record a file using arecord, it functions at it should.
The last line with the
###
, shows the current output of the microphone. I can see that it works when i talk or touch the mic.My question is, what is going wrong with the sounddevice library. Why does is not seem to want to start a stream?