I was using speech_recognition library to record from a USB microphone. Now I want to use the microphones on the ReSpeaker instead. I’ve installed all of the libraries and followed the set up instructions. I was able to get it to record using arecord -f cd -Dhw:2 test.wav, but it didn’t work in python when using the speech_recognition library. I did a full OS upgrade and now arecord isn’t working. I set The ReSpeaker as the default input in Pulse Audio, I also tried passing the microphone’s index number:
r = sr.Recognizer()
with sr.Microphone(device_index=2) as source:
audio = r.listen(source,phrase_time_limit=4)
The output jack is working.
I’m thinking of wiping out the SD card and starting from scratch. Any ideas before I do that?