Update Jarvis2.py

This commit is contained in:
B.Jothin kumar
2021-10-19 14:43:57 +05:30
committed by GitHub
parent 756a2fa5cd
commit acf7393694

View File

@@ -78,7 +78,7 @@ def take_command():
with sr.Microphone() as source: with sr.Microphone() as source:
print("Listening....") print("Listening....")
r.pause_threshold = 0.5 r.pause_threshold = 0.5
r.energy_threshold = int(config['DEFAULT']['energy_threshold']) r.energy_threshold = 300 # The default value as per speech_recognition documentation. Increase if application stops responding.
audio = r.listen(source) audio = r.listen(source)
print("Recognizing....") print("Recognizing....")