Questions
Q:

ModuleNotFoundError: No module named ‘speech recognition’

I am trying to run a below python script which uses ‘speech recognition’ module.

import speech_recognition as sr  
r = sr.Recognizer()  
with sr.Microphone() as source:  
    print("Speak Anything :")  
    audio = r.listen(source)  
    try:  
        text = r.recognize_google(audio)  
        print("You said : {}".format(text))  
                         except:  
        print("Sorry could not recognize what you said")

But got this Error,

Traceback (most recent call last):
File "E:/speech/speech.py", line 1, in
import speech_recognition as sr
ModuleNotFoundError: No module named 'speech_recognition'