diff --git a/model.py b/model.py index 02b2eb96..2017a787 100644 --- a/model.py +++ b/model.py @@ -404,9 +404,9 @@ class Model: mic_device = choice_mic_device[0] record_timeout = config.INPUT_MIC_RECORD_TIMEOUT - phase_timeout = config.INPUT_MIC_PHRASE_TIMEOUT - if record_timeout > phase_timeout: - record_timeout = phase_timeout + phrase_timeout = config.INPUT_MIC_PHRASE_TIMEOUT + if record_timeout > phrase_timeout: + record_timeout = phrase_timeout self.mic_audio_recorder = SelectedMicEnergyAndAudioRecorder( device=mic_device, @@ -419,7 +419,7 @@ class Model: self.mic_transcriber = AudioTranscriber( speaker=False, source=self.mic_audio_recorder.source, - phrase_timeout=phase_timeout, + phrase_timeout=phrase_timeout, max_phrases=config.INPUT_MIC_MAX_PHRASES, transcription_engine=config.SELECTED_TRANSCRIPTION_ENGINE, root=config.PATH_LOCAL, @@ -558,9 +558,9 @@ class Model: # speaker_energy_queue = Queue() speaker_device = choice_speaker_device[0] record_timeout = config.INPUT_SPEAKER_RECORD_TIMEOUT - phase_timeout = config.INPUT_SPEAKER_PHRASE_TIMEOUT - if record_timeout > phase_timeout: - record_timeout = phase_timeout + phrase_timeout = config.INPUT_SPEAKER_PHRASE_TIMEOUT + if record_timeout > phrase_timeout: + record_timeout = phrase_timeout self.speaker_audio_recorder = SelectedSpeakerEnergyAndAudioRecorder( device=speaker_device, @@ -573,7 +573,7 @@ class Model: self.speaker_transcriber = AudioTranscriber( speaker=True, source=self.speaker_audio_recorder.source, - phrase_timeout=phase_timeout, + phrase_timeout=phrase_timeout, max_phrases=config.INPUT_SPEAKER_MAX_PHRASES, transcription_engine=config.SELECTED_TRANSCRIPTION_ENGINE, root=config.PATH_LOCAL,