Update Jarvis2.py

This commit is contained in:
B.Jothin kumar authored and GitHub committed 2021-10-19 14:43:57 +05:30
1 parent 756a2fa5cd
commit acf7393694
1 file changed
+1 -1
+1 -1
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....")