diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-06-20 16:54:51 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-20 17:31:31 -0400 |
commit | e100daf343d1ee00641402aeca5b631c97b96977 (patch) | |
tree | 4684d3bd46279470eaab08ec6456351fbbec86e8 /tools/voice.pl | |
parent | 8cb8a30f9d8e87fbd1103abef6447358393cfcd1 (diff) | |
download | rockbox-e100daf343d1ee00641402aeca5b631c97b96977.tar.gz rockbox-e100daf343d1ee00641402aeca5b631c97b96977.zip |
voice: Voiced strings for INVALID_VOICE and LANGUAGE_NAME
* Voice generation script will create standalone .talk clips
* These talk clips will be included in the rockbox .zip file
* All .voice files will be included in the rockbox .zip file
* Added LANGUAGE_NAME for all languages in the nightly builds
This way, any voice pack installed will give you a the langauge
voiced in the browser, and if the voice file fails to load you
will get a natively translated error message.
Change-Id: I6b627a51746cd088d6e200666dd326ea2745f55f
Diffstat (limited to 'tools/voice.pl')
-rwxr-xr-x | tools/voice.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/voice.pl b/tools/voice.pl index b582c96235..c62e4c164a 100755 --- a/tools/voice.pl +++ b/tools/voice.pl | |||
@@ -511,6 +511,14 @@ sub generateclips { | |||
511 | if (defined($ENV{'POOL'})) { | 511 | if (defined($ENV{'POOL'})) { |
512 | copy($enc, $pool_file); | 512 | copy($enc, $pool_file); |
513 | } | 513 | } |
514 | # Special cases | ||
515 | if ($id eq "VOICE_INVALID_VOICE_FILE") { | ||
516 | copy ($enc, "InvalidVoice_$language.talk"); | ||
517 | } | ||
518 | if ($id eq "VOICE_LANG_NAME") { | ||
519 | copy ($enc, "$language.lng.talk"); | ||
520 | } | ||
521 | |||
514 | unlink($wav); | 522 | unlink($wav); |
515 | } | 523 | } |
516 | $voice = ""; | 524 | $voice = ""; |