I am running the following code in Python 2.7 with pyAudio installed.
import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source:
just try;
pip install sounddevice
it works.