Shraddhakh / Micro-Projects

0 stars 0 forks source link

Installing Speech Recognition using pip install SpeechRecognition , gave error #2

Closed Shraddhakh closed 3 years ago

Shraddhakh commented 3 years ago

(Jan) PS D:\Shraddha Projects\Jan\Jan\codes> python -m speech_recognition Traceback (most recent call last): File "D:\Shraddha Projects\Jan\Jan\lib\site-packages\speech_recognition__init__.py", line 108, in get_pyaudio ModuleNotFoundError: No module named 'pyaudio'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "D:\Shraddha Projects\Jan\Jan\lib\site-packages\speech_recognition__main.py", line 4, in
m = sr.Microphone() File "D:\Shraddha Projects\Jan\Jan\lib\site-packages\speech_recognition__init.py", line 79, in init__
self.pyaudio_module = self.get_pyaudio() File "D:\Shraddha Projects\Jan\Jan\lib\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 Screenshot (27)

Shraddhakh commented 3 years ago

Solved error using : pip install pipwin pipwin install pyaudio then pip install SpeechRecognition

Screenshot (28) Screenshot (29)