def take_command():
r = sr.Recognizer()
with sr.Microphone() as source:
print("\nListening.......")
audio = r.listen(source)
try:
query = r.recognize_google(audio,language='en-in')
except:
print("\nDidn't catch that, please say again :)")
take_command()
*It seems the SpeechRecognation module is not working for me. * I have all dependencies installed. There is no error after executing the code and it do not even prints the strings coded to print. I am unable to understand what is going wrong with me. Can anyone please help me with this.