Skip to content

Commit 8ae82c8

Browse files
authored
Bugfix: code breaks if audio is empty (SYSTRAN#768)
* Bugfix: code breaks if audio is empty Regression since SYSTRAN#732 PR
1 parent e0c3a9e commit 8ae82c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

faster_whisper/transcribe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def transcribe(
356356
features.shape[-1] - self.feature_extractor.nb_max_frames
357357
)
358358
while (
359-
seek < content_frames
359+
seek <= content_frames
360360
and seek
361361
< self.feature_extractor.nb_max_frames * language_detection_segments
362362
):

0 commit comments

Comments
 (0)