[lang] Read-aloud: our own G2P in espeak-ng's conventions (Czech, German, English with CMUdict), numbers as words, the voices' tokens; Lang::Cs

This commit is contained in:
2026-11-18 17:30:19 +01:00
parent 388e8e01c4
commit 8f43cb2c4c
14 changed files with 1272 additions and 7 deletions
+5
View File
@@ -13,6 +13,7 @@
pub mod align;
pub mod concept;
pub mod g2p;
pub mod lemma;
pub mod level;
pub mod profile;
@@ -31,6 +32,8 @@ pub enum Lang {
En,
De,
La,
/// Day 4: Czech, for reading aloud (the reader's own language; no lemma rules).
Cs,
}
impl Lang {
@@ -41,6 +44,7 @@ impl Lang {
"en" | "eng" => Some(Lang::En),
"de" | "ger" | "deu" => Some(Lang::De),
"la" | "lat" => Some(Lang::La),
"cs" | "cze" | "ces" => Some(Lang::Cs),
_ => None,
}
}
@@ -50,6 +54,7 @@ impl Lang {
Lang::En => "en",
Lang::De => "de",
Lang::La => "la",
Lang::Cs => "cs",
}
}
}