speech_recognition: AttributeError: Could not find PyAudio; check installation Raspberry Pi 3

I am currently trying to get speech recognition to work on my raspberry pi 3 however this is the error that I am getting.

Traceback (most recent call last): File "listen.py", line 8, in <module> with sr.Microphone() as source: File "/home/pi/Documents/Test/env/local/lib/python2.7/site-packages/speech_recognition/__init__.py", line 79, in __init__ self.pyaudio_module = self.get_pyaudio() File "/home/pi/Documents/Test/env/local/lib/python2.7/site-packages/speech_recognition/__init__.py", line 110, in get_pyaudio raise AttributeError("Could not find PyAudio; check installation") AttributeError: Could not find PyAudio; check installation

My issue is almost exactly the same as sanster9292 who opened a ticket on June 2, 2017. I tried everything that you asked him to; however, I am still getting the error above. Please, let me know if you need more information. Do you have any idea how to get this to work on my raspberry pi 3?

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 35 (3 by maintainers)

Most upvoted comments

pip install pipwin pipwin install pyaudio

It worked for me (windows)

i got this problem while installing pyaudio.

Screenshot 2020-05-07 at 11 05 50 AM

I got same problem while installing it on pydroid…if it appears on windows you can fix it using pip install pipwin pipwin install pyaudio

Not working in window

I’m using Linux and for me this command on terminal worked:

sudo apt install python3-pyaudio