From a52b026ac844c02117865e61968547639b60a6f8 Mon Sep 17 00:00:00 2001 From: Purfview <69023953+Purfview@users.noreply.github.com> Date: Sat, 10 Oct 2026 04:39:41 +0100 Subject: [PATCH] Tweak collect_chunks() (#1653) A new group opens with missing "segments". Not a bug in the API as "segments" metadata is not in use down stream. Detected by some AI bot there: https://github.com/SYSTRAN/faster-whisper/pull/1491 --- faster_whisper/vad.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/faster_whisper/vad.py b/faster_whisper/vad.py index 3185838..9f2118b 100644 --- a/faster_whisper/vad.py +++ b/faster_whisper/vad.py @@ -254,8 +254,7 @@ def collect_chunks( total_duration += current_duration chunks_metadata.append(chunk_metadata) - current_segments = [] - + current_segments = [chunk] current_audio = audio[chunk["start"] : chunk["end"]] current_duration = chunk["end"] - chunk["start"] else: