Skip to content

fix(cli): keep punctuation-only speaker turns in tts --multi-speaker - #75

Merged
copybara-service[bot] merged 1 commit into
mainfrom
copybara/994674353
Oct 6, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
copybara/994674353

Conversation

@copybara-service

Copy link
Copy Markdown

fix(cli): keep punctuation-only speaker turns in tts --multi-speaker

Bounding lineMarkerStart at the previous label also made "only whitespace since the previous label" count as the start of a line, so a punctuation-only turn after a label on the same line was read as the next label's list marker and dropped with it (Alice: ... Bob: Yes?, Alice: — Bob: Sorry, go on., and Alice: ?! Bob: What? each sent only Bob's turn).

Judge the line start on the whole text (text[:floor+len(rest)]) for every marker. The scan still stops at the previous label (floor), so emoji names (😀: 🤖:) do not overlap or panic.

@copybara-service
copybara-service Bot requested a review from a team October 6, 2026 22:48
Bounding `lineMarkerStart` at the previous label also made "only whitespace since the previous label" count as the start of a line, so a punctuation-only turn after a label on the same line was read as the next label's list marker and dropped with it (`Alice: ... Bob: Yes?`, `Alice: — Bob: Sorry, go on.`, and `Alice: ?! Bob: What?` each sent only Bob's turn).

Judge the line start on the whole text (`text[:floor+len(rest)]`) for every marker. The scan still stops at the previous label (`floor`), so emoji names (`😀: 🤖:`) do not overlap or panic.

PiperOrigin-RevId: 994686637
@copybara-service
copybara-service Bot merged commit 3633e3c into main Oct 6, 2026
4 checks passed
@copybara-service
copybara-service Bot deleted the copybara/994674353 branch October 6, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants