Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions kokoro/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
languages = [
"a", # American English
"b", # British English
"d", # German
"h", # Hindi
"e", # Spanish
"f", # French
Expand Down
4 changes: 3 additions & 1 deletion kokoro/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
ALIASES = {
'en-us': 'a',
'en-gb': 'b',
'de': 'd',
'es': 'e',
'fr-fr': 'f',
'hi': 'h',
Expand All @@ -26,6 +27,7 @@
b='British English',

# espeak-ng
d='de',
e='es',
f='fr-fr',
h='hi',
Expand Down Expand Up @@ -140,7 +142,7 @@ def __init__(
raise
else:
language = LANG_CODES[lang_code]
logger.warning(f"Using EspeakG2P(language='{language}'). Chunking logic not yet implemented, so long texts may be truncated unless you split them with '\\n'.")
logger.debug(f"Using EspeakG2P(language='{language}') with sentence-boundary chunking.")
self.g2p = espeak.EspeakG2P(language=language)

def load_single_voice(self, voice: str):
Expand Down