Open phpoh opened 1 year ago
You need to install pyaudio library, you can try "pip install pyaudio" in your command terminal. If it doesn't work, you can try to download the official package directly for your python version from this website https://pypi.org/project/PyAudio/#files
Oh, yes, thank you! I'll try
Can I use Chinese? My hero
I didn't try that before, you can try it.
File "C:\Python\lib\site-packages\speech_recognition__init__.py", line 120, in get_pyaudio import pyaudio ModuleNotFoundError: No module named 'pyaudio'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\Administrator\Desktop\voice\Jarvis.py", line 58, in
prompt = listen()
File "C:\Users\Administrator\Desktop\voice\Jarvis.py", line 33, in listen
with sr.Microphone() as source:
File "C:\Python\lib\site-packages\speech_recognition__init.py", line 92, in init__
self.pyaudio_module = self.get_pyaudio()
File "C:\Python\lib\site-packages\speech_recognition__init__.py", line 122, in get_pyaudio
raise AttributeError("Could not find PyAudio; check installation")
AttributeError: Could not find PyAudio; check installation