speech_recognition icon indicating copy to clipboard operation
speech_recognition copied to clipboard

Import Fail

Open programwithrey opened this issue 4 years ago • 3 comments

Every time i try to run any of my python code that has Speech Recognition imported in it it says. get_pyaudio raise AttributeError("Could not find PyAudio; check installation") AttributeError: Could not find PyAudio; check installation

even tho i have pyaudio installed

programwithrey avatar Dec 26 '20 08:12 programwithrey

Maybe try to reinstall it again

CoderX-2003 avatar Dec 29 '20 10:12 CoderX-2003

@programwithrey if you're still having this problem and you're in linux this solved my issue:

  1. Execute this: sudo apt-get install portaudio19-dev python3-pyaudio
  2. Now install pyaudio through pip: pip install pyaudio
  3. Now you should be able to use pyaudio!

This is for linux, tested in popOS (should work in ubuntu and other linux distrubtions too)

Im-Fran avatar Apr 02 '21 17:04 Im-Fran

Thanks, It Works Now!!!!!!!

programwithrey avatar Apr 05 '21 08:04 programwithrey