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
16 changes: 16 additions & 0 deletions kokoro.js/src/voices.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,22 @@ export const VOICES = Object.freeze({
// targetQuality: "C",
// overallGrade: "D",
// },
// df_anna: {
// name: "anna",
// language: "de",
// gender: "Female",
// traits: "🚺",
// targetQuality: "C",
// overallGrade: "D",
// },
// dm_daniel: {
// name: "daniel",
// language: "de",
// gender: "Male",
// traits: "🚹",
// targetQuality: "C",
// overallGrade: "D",
// },
// ef_dora: {
// name: "dora",
// language: "es",
Expand Down
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
9 changes: 9 additions & 0 deletions 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 @@ -138,6 +140,13 @@ def __init__(
except ImportError:
logger.error("You need to `pip install misaki[zh]` to use lang_code='z'")
raise
elif lang_code == 'd':
try:
from misaki import de
self.g2p = de.DEG2P()
except ImportError:
logger.error("You need to `pip install misaki[de]` to use lang_code='d'")
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'.")
Expand Down