Skip to content

fix(cli): split Kokoro text on token overflow - #3041

Open
miguel-heygen wants to merge 1 commit into
mainfrom
fix/kokoro-japanese-chunking-1785890373
Open

fix(cli): split Kokoro text on token overflow#3041
miguel-heygen wants to merge 1 commit into
mainfrom
fix/kokoro-japanese-chunking-1785890373

Conversation

@miguel-heygen

@miguel-heygen miguel-heygen commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

fixes reported:1785890373.136199:kokoro; reported:1785890373.136199:ffmpeg remains blocked

Source claim: https://slack.com/archives/C0BGC335AQY/p1785890373136199

Kokoro synthesis now catches only its 510-entry voice-token overflow, splits text near the midpoint at Japanese/Western sentence boundaries, synthesizes recursively, and concatenates the audio. Other IndexError failures still propagate. The cached bridge is bumped to synth-v3.py so existing installations receive the update.

Verification:

  • Regression test RED before fix, GREEN after fix (5/5)
  • CLI typecheck, oxlint, and oxfmt passed
  • Exact 56-character Japanese fixture: 40.491s WAV generated
  • Exact 502-character Japanese fixture: 345.109s WAV generated
  • Lefthook tracked-artifact and static-analysis gates passed

The separate Windows FFmpeg diagnostic claim is not changed by this PR and remains blocked on a Windows low-memory reproduction.

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.

1 participant