我正在尝试进行基本的语音识别,是从youtube视频中获取此代码,但出现错误,并且我不知道如何解决。我正在使用python 3
错误::模块“ pyaudio”没有属性“ _version __”
代码:
with sr.Microphone() as source:
print('Say Anything : ')
audio = r.listen(source)
try:
text = r.recognize_google(audio)
print('You said : {}'.format(text))
except:
print('sorry could not hear the command')