Skip to content

fix kokoro chunker - #172

Merged
SearchSavior merged 2 commits into
mainfrom
yaml-time
Sep 15, 2026
Merged

SearchSavior merged 2 commits into
mainfrom
yaml-time

Conversation

@SearchSavior

Copy link
Copy Markdown
Owner

In order to keep the inference fast and within the character based context window of kokoro. Internally openarc will chunk the input text meaning you dont need to do anything special to preprocess- just send kokoro your text and the engine takes care of the rest.

Issues were present in how the chunker checks for boundaries- occasionally it would drop text meaning the audio would come through spotty or incomplete. This patch may even improve prosody for this little model.

src/server/schemas/modeling/contract_kokoro.py
• Default character_count_chunk: 100 → 400.

src/server/worker_registry.py
• Removed chunk_texts from Kokoro inference metrics — the full input text was being dumped into server logs on every request.

tests/unit/test_ov_genai_kokoro_unit.py
• 5 new regression tests: overlong-sentence-after-flush splitting, size/lossless invariants, clause-boundary preference, newline/empty-input handling, and multi-bucket audio concatenatio

@SearchSavior
SearchSavior merged commit 120d46e into main Sep 15, 2026
1 check failed
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