I have run this code in pycharm:
import speech_recognition
robot_ear = speech_recognition.Recognizer()
with speech_recognition.Microphone() as mic:
print("Robot: I'm Listening")
audio = robot_ear.listen(mic)
you = robot_ear.recognize_google(audio)
print(you)
And I got this error: ( File "C:\Users\RubyHaoNhien\PycharmProjects\AiForBeginner\venv\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\RubyHaoNhien\PycharmProjects\AiForBeginner\listen.py", line 4, in
with speech_recognition.Microphone() as mic:
File "C:\Users\RubyHaoNhien\PycharmProjects\AiForBeginner\venv\lib\site-packages\speech_recognition_init_.py", line 79, in init
self.pyaudio_module = self.get_pyaudio()
File "C:\Users\RubyHaoNhien\PycharmProjects\AiForBeginner\venv\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)
I have already install Pyaudio with pywin in the command
