feat: add German (de) language support#316
Open
mitchellecm7 wants to merge 1 commit into
Open
Conversation
- Add kokoro/de_normalizer.py: pure-Python German text normalisation (abbreviations, numbers, currency, times, dates, years, ordinals) - Add kokoro/de_g2p.py: DEG2P wrapper using EspeakG2P(language='de') - Update kokoro/pipeline.py: lang_code='d'/'de', ALIASES, LANG_CODES, DEG2P branch - Update kokoro/__main__.py: add 'd' to CLI language choices - Add kokoro.js/src/phonemize_de.js: JS normalisation + phonemize_de() - Update kokoro.js/src/voices.js: df_anna, df_emma, dm_bernd, dm_hans stubs - Update kokoro.js/src/kokoro.js: route German voices to phonemize_de() - Add tests/test_de_normalizer.py (53 unit tests, CI-safe) - Add kokoro.js/tests/phonemize_de.test.js (84 Vitest tests) Requires: apt-get install espeak-ng No new Python packages beyond existing dependencies. Voice .pt/.bin files pending German model training. Closes hexgrad#290
|
For context on the prior work behind German language support for Kokoro, see my comment on issue #290. The pipeline wiring in this PR (ALIASES, LANG_CODES, CLI registration) mirrors what I implemented in semidark/kokoro-deutsch, published April 10 -- a week before this PR was opened. I'll be submitting a separate PR that ties the pipeline integration to actual trained German voices and the training recipe. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requires: apt-get install espeak-ng
No new Python packages beyond existing dependencies. Voice .pt/.bin files pending German model training.
Closes #290