Skip to content

Fix: add text chunking for non-English language pipeline - #105

Merged
hexgrad merged 1 commit into
hexgrad:mainfrom
alesaccoia:main
Feb 20, 2025
Merged

Fix: add text chunking for non-English language pipeline#105
hexgrad merged 1 commit into
hexgrad:mainfrom
alesaccoia:main

Conversation

@alesaccoia

Copy link
Copy Markdown
Contributor

Using the generator to loop on segments to process long-form audio didn't work for non English languages, actually the audio was generated for just the first max 500 chars.

This commit fixes it with a kind of trivial chunking method butm for Italian, for example, it does the job.

@hexgrad
hexgrad merged commit 2dd9df6 into hexgrad:main Feb 20, 2025
python273 added a commit to python273/kokoro that referenced this pull request Feb 23, 2025
hexgrad pushed a commit that referenced this pull request Feb 23, 2025
* Add Result.text_index to be able to map segments to paragraphs

* Fix speed re: #105
Kevklatman referenced this pull request in Kevklatman/kokoro Jun 6, 2025
Co-authored-by: Your Name <your.email@example.com>
Kevklatman referenced this pull request in Kevklatman/kokoro Jun 6, 2025
* Add Result.text_index to be able to map segments to paragraphs

* Fix speed re: #105
semidark added a commit to semidark/kokoro that referenced this pull request Apr 17, 2026
The warning 'Chunking logic not yet implemented' in __init__ was added
in Jan 2025, but sentence-level chunking was implemented in hexgrad#105
(Feb 2025). The warning is now misleading for all espeak-ng languages.

Also add commented-out German voice stubs (df_anna, dm_daniel) to
kokoro.js/src/voices.js, pending trained voice weights.
semidark added a commit to semidark/kokoro that referenced this pull request Apr 17, 2026
The warning 'Chunking logic not yet implemented' was added in Jan 2025
but sentence-level chunking was implemented in hexgrad#105 (Feb 2025). The
warning is now misleading for all espeak-ng languages.
geneing pushed a commit to geneing/hexgrad-kokoro that referenced this pull request Apr 21, 2026
…ad#111)

* Add Result.text_index to be able to map segments to paragraphs

* Fix speed re: hexgrad#105
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.

3 participants