【发布时间】:2020-06-24 01:03:00
【问题描述】:
Traceback (most recent call last):
File "C:\Users\Anu Nema\AppData\Local\Programs\Python\Python38-32\lib\site-packages\speech_recognition\__init__.py", line 109, 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/Anu Nema/Desktop/New folder/alice/alice.py", line 49, in <module>
takeCommand()
File "c:/Users/Anu Nema/Desktop/New folder/alice/alice.py", line 30, in takeCommand
with sr.Microphone() as source:
File "C:\Users\Anu Nema\AppData\Local\Programs\Python\Python38-32\lib\site-packages\speech_recognition\__init__.py", line 80, in __init__
self.pyaudio_module = self.get_pyaudio()
File "C:\Users\Anu Nema\AppData\Local\Programs\Python\Python38-32\lib\site-packages\speech_recognition\__init__.py", line 111, in get_pyaudio
raise AttributeError("Could not find PyAudio; check installation")
AttributeError: Could not find PyAudio; check installation
【问题讨论】:
-
你是否在命令行中完成了‘pip3 install pyaudio’?
-
欢迎来到stackoverflow!请阅读how to ask 和how to create a minimal reproducible example。在当前状态下,您的问题无法回答,请使用更多详细信息对其进行编辑,并最好包含一些代码。
标签: python python-3.x speech-recognition pyaudio pyaudioanalysis