Update Jarvis2.py

This commit is contained in:
B.Jothin kumar 2021-10-19 15:34:50 +05:30 committed by GitHub
parent ac8226a2b5
commit 18b91f11cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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