From 8ae82c8372c7deab3ee0dc21cbe4c70a2ee9803a Mon Sep 17 00:00:00 2001 From: Purfview <69023953+Purfview@users.noreply.github.com> Date: Tue, 2 Apr 2024 17:18:12 +0100 Subject: [PATCH] Bugfix: code breaks if audio is empty (#768) * Bugfix: code breaks if audio is empty Regression since https://github.com/SYSTRAN/faster-whisper/pull/732 PR --- faster_whisper/transcribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faster_whisper/transcribe.py b/faster_whisper/transcribe.py index 1c002ed..34cd271 100644 --- a/faster_whisper/transcribe.py +++ b/faster_whisper/transcribe.py @@ -356,7 +356,7 @@ class WhisperModel: features.shape[-1] - self.feature_extractor.nb_max_frames ) while ( - seek < content_frames + seek <= content_frames and seek < self.feature_extractor.nb_max_frames * language_detection_segments ):