def get_audio():
r = sr.Recognizer()
with sr.Microphone() as source:
audio = r.listen(source)
said = ""
try:
said = r.recognize_google(audio)
except Exception as e:
print("Exception:", str(e))
return said.lower()
And then : AttributeError Could not find PyAudio; check installation
My python version is :Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32
And i downloaded "PyAudio-0.2.11-cp37-cp37m-win_amd64.whl"
Why?