diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-06-21 16:57:48 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-21 16:58:43 -0400 |
commit | bb127469722ce94fe481e14984bcd0502844d1eb (patch) | |
tree | 73c91a9443c6cd672ac1a49162b112b545678747 | |
parent | eb8f6e578ed376fe75039972850cd72179894485 (diff) | |
download | rockbox-bb127469722ce94fe481e14984bcd0502844d1eb.tar.gz rockbox-bb127469722ce94fe481e14984bcd0502844d1eb.zip |
voice: Make sure we always copy INVALID_VOICE and LANG_NAME clips
If they were in the pool, they'd not be copied out.
Change-Id: If3d7d72656eba18e2df7f7f1307f967494cb4ab6
-rwxr-xr-x | tools/voice.pl | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/voice.pl b/tools/voice.pl index 0e58bad503..b2aadbcfab 100755 --- a/tools/voice.pl +++ b/tools/voice.pl | |||
@@ -511,16 +511,17 @@ 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 | |||
522 | unlink($wav); | 514 | unlink($wav); |
523 | } | 515 | } |
516 | |||
517 | # Special cases | ||
518 | if ($id eq "VOICE_INVALID_VOICE_FILE") { | ||
519 | copy ($enc, "InvalidVoice_$language.talk"); | ||
520 | } | ||
521 | if ($id eq "VOICE_LANG_NAME") { | ||
522 | copy ($enc, "$language.lng.talk"); | ||
523 | } | ||
524 | |||
524 | $voice = ""; | 525 | $voice = ""; |
525 | $id = ""; | 526 | $id = ""; |
526 | } | 527 | } |