Skip to content

Captions: overlapping cues from different speakers merge, and speaker names are dropped #42

Open

Description

@frinsen

Same bug as upstream #275, confirmed here.

parse_vtt strips <v Name> voice spans along with every other tag (TAG_RE in transcribe.py), and the overlap/duplicate logic then treats different speakers' identical lines as one rolling cue.

Repro (overlapping cues, two voices):

00:00:01.000 --> 00:00:02.000
<v Alice>Yes

00:00:01.000 --> 00:00:02.000
<v Bob>Yes

parse_vtt returns a single Yes. Two speakers each saying "Are you sure?" in overlapping cues also collapse to one line. Speaker names are lost in every case.

Fix: read the voice name before stripping tags, only merge or dedupe cues from the same voice, and keep the speaker in the transcript text (e.g. Alice: Yes) when the track has voice spans. Upstream's PR bradautomates#275 keeps cues apart but doesn't surface the names; worth going one step further here.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions