remove hardcoded timeouts; already moved to conf
parent
7f7c97d0f6
commit
d4d7d09e40
|
@ -323,16 +323,6 @@ class ResponsiveRecognizer(speech_recognition.Recognizer):
|
||||||
# before a phrase will be considered complete
|
# before a phrase will be considered complete
|
||||||
MIN_SILENCE_AT_END = 0.25
|
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
|
# Time between pocketsphinx checks for the wake word
|
||||||
SEC_BETWEEN_WW_CHECKS = 0.2
|
SEC_BETWEEN_WW_CHECKS = 0.2
|
||||||
|
|
||||||
|
@ -375,13 +365,12 @@ class ResponsiveRecognizer(speech_recognition.Recognizer):
|
||||||
# The maximum seconds a phrase can be recorded,
|
# The maximum seconds a phrase can be recorded,
|
||||||
# provided there is noise the entire time
|
# provided there is noise the entire time
|
||||||
self.recording_timeout = listener_config.get('recording_timeout',
|
self.recording_timeout = listener_config.get('recording_timeout',
|
||||||
self.RECORDING_TIMEOUT)
|
10.0)
|
||||||
|
|
||||||
# The maximum time it will continue to record silence
|
# The maximum time it will continue to record silence
|
||||||
# when not enough noise has been detected
|
# when not enough noise has been detected
|
||||||
self.recording_timeout_with_silence = listener_config.get(
|
self.recording_timeout_with_silence = listener_config.get(
|
||||||
'recording_timeout_with_silence',
|
'recording_timeout_with_silence', 3.0)
|
||||||
self.RECORDING_TIMEOUT_WITH_SILENCE)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def account_id(self):
|
def account_id(self):
|
||||||
|
|
Loading…
Reference in New Issue