diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-07-18 10:29:40 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-07-18 10:30:34 -0400 |
commit | a7159ad48348221683e8f4b873f0af3de2dcf667 (patch) | |
tree | c3d987c0fa617a5e03261a782740011d69789725 | |
parent | 16094fca33eee37bac78a2627eb489dfb9fa37f7 (diff) | |
download | rockbox-a7159ad483.tar.gz rockbox-a7159ad483.zip |
voice: Encode all tts options in the POOL filename.
It was only including about half. Unfortunately this will likely
invalidate all existing pools.
Change-Id: Ib1da430259823a5429b4119067ba9ef0c16b7900
-rwxr-xr-x | tools/voice.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/voice.pl b/tools/voice.pl index 8e970f1a9a..d2ec6c446d 100755 --- a/tools/voice.pl +++ b/tools/voice.pl @@ -479,7 +479,7 @@ sub generateclips { # If we have a pool of snippets, see if the string exists there first if (defined($ENV{'POOL'})) { $pool_file = sprintf("%s/%s-%s.enc", $ENV{'POOL'}, - md5_hex(Encode::encode_utf8("$voice ". $tts_object->{"name"}." $tts_engine_opts $encoder_opts")), + md5_hex(Encode::encode_utf8("$voice ". $tts_object->{"name"}." $tts_engine_opts ".$tts_object->{"ttsoptions"}." $encoder_opts")), $language); if (-f $pool_file) { printf("Re-using %s (%s) from pool\n", $id, $voice) if $verbose; @@ -673,7 +673,7 @@ if ($V == 1) { printf("Generating voice\n Target: %s\n Language: %s\n Encoder (options): %s (%s)\n TTS Engine (options): %s (%s)\n Pool directory: %s\n", defined($t) ? $t : "unknown", - $l, $e, $E, $s, $S, defined($ENV{'POOL'}) ? $ENV{'POOL'} : "<none>"); + $l, $e, $E, $s, "$S $tts_object->{ttsoptions}", defined($ENV{'POOL'}) ? $ENV{'POOL'} : "<none>"); generateclips($l, $t, $e, $E, $tts_object, $S, $f); shutdown_tts($tts_object); createvoice($l, $i, $f); |