import speech_recognition as sr listener = sr.Recognizer() try: with sr.Microphone() as source: print("listening...") voice = listener.listen(source) info = listener.recognize_google(voice) print(info) except Exception as e: print(e)
It shows:
[WinError 2] The system cannot find the file specified
The expected output should be printing all the stuff that I say.
I have already installed PyAudio using pipwin.
Advertisement
Answer
This issue was resolved by resetting up the path variable for the python interpreter. Thanks for all the answers and your efforts