From 52f743e43a9ef582e04d7a363fbda19824db6cc7 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 19 Feb 2023 11:46:43 -0800 Subject: Remove exponential backoff cap Allows sustained exponential backoff when not transcribing. Used to cap out at 1s. * Add more items to README TODO list * Adjust emote metadata * Emotes bugfix: Non-existent emote map doesn't cause transcription engine to bail out. --- Scripts/transcribe.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Scripts/transcribe.py') diff --git a/Scripts/transcribe.py b/Scripts/transcribe.py index d67edb6..c4d7682 100644 --- a/Scripts/transcribe.py +++ b/Scripts/transcribe.py @@ -252,10 +252,9 @@ def transcribeAudio(audio_state, model, use_cpu: bool): else: time.sleep(0.05) + audio_state.transcribe_no_change_count += 1 # Increase sleep time. Code below will set sleep time back to minimum # if a change is detected. - if audio_state.transcribe_no_change_count < 10: - audio_state.transcribe_no_change_count += 1 longer_sleep_dur = audio_state.transcribe_sleep_duration longer_sleep_dur += audio_state.transcribe_sleep_duration_min_s * (1.3**audio_state.transcribe_no_change_count) if audio_state.audio_paused: -- cgit v1.2.3