Skip to content

audio: merge_transcripts repeats or drops words at chunk seams #166

Open

Description

@aviv1ron1

Problem

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

  1. added
    bug
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions