This the code I wrote for speech recognition after successful installation of necessary libraries.
import speech_recognition as sr
import pyttsx3
r = sr.Recognizer()
with sr.Microphone() as source:
print('Please Speak: ')
audio = r.listen(source)
try:
text = r.recognize_google(audio)
print(f'Did you told: {text}')
except:
print('Could not understand')
I am not able to understand what these horrible error means. Repeatedly am installing pyaudio but that is not working. enter image description here
This is the gift am getting while installing pyaudio. enter image description here