I am trying to program a voice assistant using python and the SpeechRecognition library. But when I execute my program, it runs for about 2 secs and then throws the following Error
[0:02] Decoding of audio.mp3 finished.
Traceback (most recent call last):
File "/home/USERNAME/PycharmProjects/jarvis/venv/lib/python3.7/site-packages/speech_recognition/__init__.py", line 108, in get_pyaudio
import pyaudio
ModuleNotFoundError: No module named 'pyaudio'
I have already spent some hours trying different solutions but none seem to work for me.
I am on ubuntu if that helps
I just figured it out. There was nothing wrong with my installation. It seems to be a bug in the integrated Terminal of pycharm. When I moved into my project dir with my linux shell and executed my script everything worked just fine. I don't know, why it didn't work with the built in terminal.