mirror of
https://github.com/SYSTRAN/faster-whisper.git
synced 2026-10-12 02:09:35 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user