Update Jarvis2.py

This commit is contained in:
B.Jothin kumar
2021-10-19 12:57:59 +05:30
committed by GitHub
parent dec66fcc8b
commit 98b2ffb06b

View File

@@ -78,6 +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'])
audio = r.listen(source)
print("Recognizing....")