You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
audio: merge_transcripts repeats or drops words at chunk seams #166
Audio longer than asr_chunk_length_s is split into overlapping windows, which are transcribed separately and joined by merge_transcripts (src/granite_switch/vllm/audio/chunking.py). _seam_overlap looks for the longest exact word match (ignoring case and punctuation) between the end of one window's transcript and the start of the next. When the two windows don't produce the same words in the overlap, the merged transcript is wrong:
No overlap found, so text is repeated. When the next window starts in the middle of a word (aut hypnotic on one side, autohypnotic on the other), or the two windows disagree on a single word in the overlap, no match is found. _seam_overlap returns 0 and the whole overlap is kept twice, repeating about 10 words at that seam.
Wrong overlap found, so real words are dropped. On repetitive speech, the longest match can line up with an earlier repetition rather than the true overlap, and real words are cut.
Who is affected
Anyone transcribing clips longer than one window through our chunker (asr_self_chunks: false, the default for the CTC ASR). This happens with both releases of the default ASR (947f59a and the multilingual one), and it predates the Hub change in #155.
Found while investigating #155 (see "Other findings" there).
Activity