[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:
@@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user