From bb127469722ce94fe481e14984bcd0502844d1eb Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 21 Jun 2024 16:57:48 -0400 Subject: 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 --- tools/voice.pl | 17 +++++++++-------- 1 file 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 { if (defined($ENV{'POOL'})) { copy($enc, $pool_file); } - # Special cases - if ($id eq "VOICE_INVALID_VOICE_FILE") { - copy ($enc, "InvalidVoice_$language.talk"); - } - if ($id eq "VOICE_LANG_NAME") { - copy ($enc, "$language.lng.talk"); - } - unlink($wav); } + + # Special cases + if ($id eq "VOICE_INVALID_VOICE_FILE") { + copy ($enc, "InvalidVoice_$language.talk"); + } + if ($id eq "VOICE_LANG_NAME") { + copy ($enc, "$language.lng.talk"); + } + $voice = ""; $id = ""; } -- cgit v1.2.3