Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

I2S mic with raspberry pi not working with PyAudio
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

I2S mic with raspberry pi not working with PyAudio

by Dshep123 on Tue Jul 28, 2020 11:27 am

I recently purchased the I2s microphone from adafruit and wired it to my raspberry Pi 3 Model A+. I want to use the module as the microphone but use the on board audio jack for the speaker. 


Initially this worked with the terminal when recording with arecord and playing with aplay. When trying to use Python PyAudio it gave me many alsa errors and Jack errors such as:


jack server is not running or cannot be started


PyAudio:

Code: Select all | TOGGLE FULL SIZE
import pyaudio
    P = PyAudio()

I traced the error to be called in the initialization of PyAudio at the

Code: Select all | TOGGLE FULL SIZE
pa.initialize()


The code did not break but didn't function how I wanted it to. I am hoping to use the speech recognition library but when I run it once again I get all these errors and then it just listens forever. When I used a timeout it would just give an error saying time out.

I will be thankful for any support. I've looked around and can't find any answers which works with similar topics.

Dshep123
 
Posts: 1
Joined: Tue Jul 28, 2020 11:16 am

Please be positive and constructive with your questions and comments.