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:
Please set minimum threshold.
set minimum threshold
After running commend python -m speech_recognition. Set minimum energy threshold which it display.
python -m speech_recognition
Setting procedure: press Ctrl then click mouse Recognizer(). Now set energy threshold.
Setting procedure:
Ctrl
Recognizer()