diff options
Diffstat (limited to 'tools/voice.pl')
-rwxr-xr-x | tools/voice.pl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/voice.pl b/tools/voice.pl index f3cb860a26..8198501777 100755 --- a/tools/voice.pl +++ b/tools/voice.pl | |||
@@ -192,6 +192,13 @@ sub voicestring { | |||
192 | print RBSPEAK $string . "\n"; | 192 | print RBSPEAK $string . "\n"; |
193 | close(RBSPEAK); | 193 | close(RBSPEAK); |
194 | } | 194 | } |
195 | elsif ($name eq 'mimic') { | ||
196 | $cmd = "mimic $tts_engine_opts -o $output"; | ||
197 | print("> $cmd\n") if $verbose; | ||
198 | open (MIMIC, "| $cmd"); | ||
199 | print MIMIC $string . "\n"; | ||
200 | close(MIMIC); | ||
201 | } | ||
195 | } | 202 | } |
196 | 203 | ||
197 | # trim leading / trailing silence from the clip | 204 | # trim leading / trailing silence from the clip |
@@ -305,7 +312,7 @@ sub generateclips { | |||
305 | 312 | ||
306 | # If we have a pool of snippets, see if the string exists there first | 313 | # If we have a pool of snippets, see if the string exists there first |
307 | if (defined($ENV{'POOL'})) { | 314 | if (defined($ENV{'POOL'})) { |
308 | $pool_file = sprintf("%s/%s-%s.mp3", $ENV{'POOL'}, | 315 | $pool_file = sprintf("%s/%s-%s.mp3", $ENV{'POOL'}, |
309 | md5_hex("$voice $tts_engine $tts_engine_opts $encoder_opts"), | 316 | md5_hex("$voice $tts_engine $tts_engine_opts $encoder_opts"), |
310 | $language); | 317 | $language); |
311 | if (-f $pool_file) { | 318 | if (-f $pool_file) { |