From 18b91f11cd72ebce044e1d8f9cbec8fe60799c2b Mon Sep 17 00:00:00 2001 From: "B.Jothin kumar" Date: Tue, 19 Oct 2021 15:34:50 +0530 Subject: [PATCH] Update Jarvis2.py --- Jarvis2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jarvis2.py b/Jarvis2.py index 2313189..4df92e5 100755 --- a/Jarvis2.py +++ b/Jarvis2.py @@ -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....")