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
This commit is contained in:
Purfview
2026-10-10 04:39:41 +01:00
committed by GitHub
parent 9fa78645d7
commit a52b026ac8
+1 -2
View File
@@ -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: