From 0f55c436fe4ac2e5417366b4eda168ecee6b68eb Mon Sep 17 00:00:00 2001 From: Guillaume Klein Date: Mon, 24 Jul 2023 10:57:15 +0200 Subject: [PATCH] Invalidate the cached encoder output when no_speech threshold is met (#376) --- faster_whisper/transcribe.py | 1 + 1 file changed, 1 insertion(+) diff --git a/faster_whisper/transcribe.py b/faster_whisper/transcribe.py index c351c0a..70717f5 100644 --- a/faster_whisper/transcribe.py +++ b/faster_whisper/transcribe.py @@ -422,6 +422,7 @@ class WhisperModel: # fast-forward to the next segment boundary seek += segment_size + encoder_output = None continue tokens = result.sequences_ids[0]