ShaunLinTW / Voice_Assistant_Jarvis_Based_on_ChatGPT_API

A Voice Assistant - Jarvis, using Python and based on ChatGPT API to response question.
13 stars 8 forks source link

After running, I heard the sentence that it started, and then I reported this error #1

Open phpoh opened 1 year ago

phpoh commented 1 year ago

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

ShaunLinTW commented 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

phpoh commented 1 year ago

Oh, yes, thank you! I'll try

phpoh commented 1 year ago

Can I use Chinese? My hero

ShaunLinTW commented 1 year ago

I didn't try that before, you can try it.