Spaces:
Sleeping

Claude commited on
Commit
f16b33f
·
1 Parent(s): 3602e87

transcript: spill pre-first-boundary cues into the first segment

Browse files

Deselecting the first topic in the topic-preview flow left the new
first kept segment starting well after the transcript did (e.g. the
surviving boundaries become [180s, ...] for a transcript that began
at 0s). _bucket_cues only matched cues whose midpoint fell inside
some [edges[i], edges[i+1]) window, so the opening narration was
silently dropped — several minutes of speech vanishing with no error.

Spill cues with midpoint < edges[0] into bucket 0 instead. The audio
slicer (cue_bounds_per_segment) shares the same bucketing, so its
first segment's bounds extend backwards in lockstep and the dropped
narration is recovered in audio too.

In the common case where the transcript begins at the same time as
the first kept segment, this is a no-op.

https://claude.ai/code/session_01EM8jiYxdVFy1w3LeJ9GBJg

2 files changed +67 -2
Files changed (2)
app/pipeline/transcript.py+11
tests/test_transcript.py+56-2