Skip to content

fix: preserve transcripts without speaker tags - #42

Open
Yu-0312 wants to merge 1 commit into
OpenMOSS:mainfrom
Yu-0312:fix/issue-40-speaker-fallback
Open

fix: preserve transcripts without speaker tags#42
Yu-0312 wants to merge 1 commit into
OpenMOSS:mainfrom
Yu-0312:fix/issue-40-speaker-fallback

Conversation

@Yu-0312

@Yu-0312 Yu-0312 commented Aug 23, 2026

Copy link
Copy Markdown

Summary

Fixes #40.

Some backends return valid timestamped text without speaker markers for continuous single-speaker audio. The parser previously discarded those segments, making the subtitle workflow appear empty or incomplete.

The parser now assigns S01 to otherwise valid unlabelled segments by default. Callers that require strict speaker labels can pass default_speaker=None. The behavior is covered by parser and subtitle integration tests, and documented in both README files.

Validation

  • python3 -m pytest -q
  • Result: 51 passed, 1 warning
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Speaker tag [Sxx] sometimes missing on continuous/single-speaker audio, causing full segment collapse

1 participant