From d4d7d09e40ef3241f51e924ace4f9e4cad99f9fa Mon Sep 17 00:00:00 2001 From: Kris Gesling Date: Tue, 18 Aug 2020 17:07:34 +0930 Subject: [PATCH] remove hardcoded timeouts; already moved to conf --- mycroft/client/speech/mic.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/mycroft/client/speech/mic.py b/mycroft/client/speech/mic.py index 52f674b1c9..d59225f0f3 100644 --- a/mycroft/client/speech/mic.py +++ b/mycroft/client/speech/mic.py @@ -323,16 +323,6 @@ class ResponsiveRecognizer(speech_recognition.Recognizer): # before a phrase will be considered complete MIN_SILENCE_AT_END = 0.25 - # TODO: Remove in 20.08 - # The maximum seconds a phrase can be recorded, - # provided there is noise the entire time - RECORDING_TIMEOUT = 10.0 - - # TODO: Remove in 20.08 - # The maximum time it will continue to record silence - # when not enough noise has been detected - RECORDING_TIMEOUT_WITH_SILENCE = 3.0 - # Time between pocketsphinx checks for the wake word SEC_BETWEEN_WW_CHECKS = 0.2 @@ -375,13 +365,12 @@ class ResponsiveRecognizer(speech_recognition.Recognizer): # The maximum seconds a phrase can be recorded, # provided there is noise the entire time self.recording_timeout = listener_config.get('recording_timeout', - self.RECORDING_TIMEOUT) + 10.0) # The maximum time it will continue to record silence # when not enough noise has been detected self.recording_timeout_with_silence = listener_config.get( - 'recording_timeout_with_silence', - self.RECORDING_TIMEOUT_WITH_SILENCE) + 'recording_timeout_with_silence', 3.0) @property def account_id(self):