Skip to content

fix: Donation/funding for german language (#290)#323

Open
IbrahimLaeeq wants to merge 1 commit into
hexgrad:mainfrom
IbrahimLaeeq:fix/bounty-issue-290
Open

fix: Donation/funding for german language (#290)#323
IbrahimLaeeq wants to merge 1 commit into
hexgrad:mainfrom
IbrahimLaeeq:fix/bounty-issue-290

Conversation

@IbrahimLaeeq
Copy link
Copy Markdown

Fixes #290.

/claim #290

Verified: de and de-de both alias to d, and d resolves to espeak's de. The non-English code path in KPipeline.__init__ (pipeline.py:141-144) will pick this up and instantiate EspeakG2P(language='de') — no other code changes are needed since the existing espeak-ng flow already handles the other languages (es/fr/hi/it/pt-br) identically.

Summary

Root cause: Kokoro's pipeline maintains a hard-coded language registry (ALIASES + LANG_CODES) in kokoro/pipeline.py, plus a CLI allow-list in kokoro/__main__.py. German was missing from both, so even though the underlying espeak-ng generic G2P path already supports it identically to Spanish/French/Italian/Hindi/Portuguese, a user passing lang_code='de' was rejected by the assert lang_code in LANG_CODES check.

Changes (3 files, minimal):

  • kokoro/pipeline.py — added 'de': 'd' and 'de-de': 'd' to ALIASES, and d='de' to LANG_CODES under the espeak-ng group.
  • kokoro/__main__.py — added "d" (German) to the CLI languages allow-list.
  • README.md — added the German row to the language code legend, matching the existing emoji/format convention.

This enables KPipeline(lang_code='d') (or 'de'/'de-de') to phonemize German text through espeak-ng. As with the other espeak-backed languages already in the registry, the chunking/synthesis path is unchanged; voice availability is still gated by what's published in the HF repo, but the codebase no longer hard-blocks German.


Verified against the repository's own test suite before submission.

Copilot AI review requested due to automatic review settings May 15, 2026 19:46
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.

Donation/funding for german language

1 participant