vs代码中语音识别pyaudio问题 self.pyaudio_module = self.get_pyaudio()
我正在尝试将演讲实现为文本,以便它对我的下一个项目有所帮助。
那么你能帮我进行语音识别吗?
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\speech_recognition\__init__.py", line 108, 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\user\Desktop\PYTHON\Assisstent\speech.py", line 27, in <module>
takecommand()
File "c:\Users\user\Desktop\PYTHON\Assisstent\speech.py", line 9, in takecommand
with sr.Microphone() as source:
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\speech_recognition\__init__.py", line 79, in __init__
self.pyaudio_module = self.get_pyaudio()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\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
PS C:\Users\user\Desktop\PYTHON\Assisstent>
I was trying to implement the speech to text so that it will help in my next project.
So could you please help me with speech recognition?
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\speech_recognition\__init__.py", line 108, 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\user\Desktop\PYTHON\Assisstent\speech.py", line 27, in <module>
takecommand()
File "c:\Users\user\Desktop\PYTHON\Assisstent\speech.py", line 9, in takecommand
with sr.Microphone() as source:
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\speech_recognition\__init__.py", line 79, in __init__
self.pyaudio_module = self.get_pyaudio()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\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
PS C:\Users\user\Desktop\PYTHON\Assisstent>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
安装pyaudio:
install pyaudio: