diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-07-18 09:58:16 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-07-18 10:03:20 -0400 |
commit | 8ddd94f3fd0034f5b88098f0a2fbc684e7841969 (patch) | |
tree | db979bf8bf56675a4f872613e191fe74e453d678 | |
parent | 19b85e51e0f85687a5dd288b0e45f9d7a7ca00c9 (diff) | |
download | rockbox-8ddd94f3fd.tar.gz rockbox-8ddd94f3fd.zip |
voice: Add default mappings for Chinese-Simplified TTS
Change-Id: I89aaedf4843a4323af0f2a734e05ccd87b9b2530
-rw-r--r-- | tools/builds.pm | 12 | ||||
-rwxr-xr-x | tools/voice.pl | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tools/builds.pm b/tools/builds.pm index cb155407b6..9ef8a84b0e 100644 --- a/tools/builds.pm +++ b/tools/builds.pm @@ -604,6 +604,18 @@ sub simbuilds { 'enabled' => 1, }, # Everything else in alphabetical order + 'chinese-simp' => { # Mandarin? + 'lang' => 'chinese-simp', + 'name' => '(Chinese Simplified)', + 'short' => 'zh_CN', + 'defengine' => 'espeak', + 'engines' => { + 'espeak' => '-vzh', + 'gtts' => '-l zh-CN', + 'piper' => 'zh_CN-huayan-medium.onnx', + }, + 'enabled' => 0, + }, 'czech' => { 'lang' => 'czech', 'name' => 'Čeština (Czech)', diff --git a/tools/voice.pl b/tools/voice.pl index 1c547c7d96..648ef83a64 100755 --- a/tools/voice.pl +++ b/tools/voice.pl @@ -87,6 +87,7 @@ my %festival_lang_map = ( my %gtts_lang_map = ( 'english' => '-l en -t co.uk', # Always first, it's the golden master + 'chinese-simp' => '-l zh-CN', 'czech' => '-l cs', 'dansk' => '-l da', 'deutsch' => '-l de', @@ -109,6 +110,7 @@ my %gtts_lang_map = ( my %espeak_lang_map = ( 'english' => '-ven-gb -k 5', # Always first, it's the golden master + 'chinese-simp' => '-vzh', 'czech' => '-vcs', 'dansk' => '-vda', 'deutsch' => '-vde', @@ -132,6 +134,7 @@ my %espeak_lang_map = ( my %piper_lang_map = ( 'english' => 'en_GB-cori-high.onnx', # Always first, it's the golden master + 'chinese-simp' => 'zh_CN-huayan-medium.onnx', 'czech' => 'cs_CZ-jirka-medium.onnx', 'dansk' => 'da_DK-talesyntese-medium.onnx', 'deutsch' => 'de_DE-thorsten-high.onnx', |