From a7159ad48348221683e8f4b873f0af3de2dcf667 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 18 Jul 2024 10:29:40 -0400 Subject: [PATCH] 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 --- tools/voice.pl | 4 ++-- 1 file 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'} : ""); + $l, $e, $E, $s, "$S $tts_object->{ttsoptions}", defined($ENV{'POOL'}) ? $ENV{'POOL'} : ""); generateclips($l, $t, $e, $E, $tts_object, $S, $f); shutdown_tts($tts_object); createvoice($l, $i, $f);