diff --git a/faster_whisper/audio.py b/faster_whisper/audio.py index 7563f702..4e8345f9 100644 --- a/faster_whisper/audio.py +++ b/faster_whisper/audio.py @@ -82,6 +82,7 @@ def _ignore_invalid_frames(frames): except av.error.InvalidDataError: continue + def _resample_frames(frames, resampler): # Add None to flush the resampler. for frame in itertools.chain(frames, [None]):