From 19464d69c10e219db9249af50cf76715b83645a8 Mon Sep 17 00:00:00 2001 From: chiddekel Date: Fri, 26 Jun 2026 09:00:00 +0200 Subject: [PATCH] Add German (lang_code 'd') via espeak-ng G2P Routes German through the existing espeak.EspeakG2P path already used for Spanish, French, Italian, Portuguese and Hindi -- German was simply missing from ALIASES/LANG_CODES. No new code branch and no new dependency: espeak-ng is already required (it backs en G2P fallback and the other espeak languages) and ships German out of the box. Usage: KPipeline(lang_code='de') # or 'd' python3 -m kokoro -l d --text 'Guten Tag' Verified: 'Guten Tag, wie geht es dir? Kuenstliche Intelligenz ist faszinierend.' phonemizes to ['gutn tak, vi get s dir? kynstl ntlgnts st fastsinirnt.'] (IPA). Scope note: this enables German G2P + synthesis via the shared multilingual checkpoint, same tier/caveats as the other espeak languages (chunking not yet implemented for non-English; intonation quality varies as the base model was not fine-tuned on German). It is a working out-of-the-box path toward #290 while a dedicated misaki[de] / German fine-tune lands. Addresses #290 --- kokoro/__main__.py | 1 + kokoro/pipeline.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/kokoro/__main__.py b/kokoro/__main__.py index 34ee21a3..d84fd385 100644 --- a/kokoro/__main__.py +++ b/kokoro/__main__.py @@ -23,6 +23,7 @@ languages = [ "a", # American English "b", # British English + "d", # German "h", # Hindi "e", # Spanish "f", # French diff --git a/kokoro/pipeline.py b/kokoro/pipeline.py index 33770691..53e54b3b 100644 --- a/kokoro/pipeline.py +++ b/kokoro/pipeline.py @@ -11,6 +11,7 @@ ALIASES = { 'en-us': 'a', 'en-gb': 'b', + 'de': 'd', 'es': 'e', 'fr-fr': 'f', 'hi': 'h', @@ -26,6 +27,7 @@ b='British English', # espeak-ng + d='de', e='es', f='fr-fr', h='hi',