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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ def take_command():
with sr.Microphone() as source:
print("Listening....")
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)
print("Recognizing....")