mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
voice: Add support for Mimic TTS engine.
...It generates decent voice files in 1/10th the time of festival. Change-Id: I1bf9271633a8a0e9c483761b8685f296d2f303b8
This commit is contained in:
parent
84624e14f8
commit
e0d7c7c632
2 changed files with 51 additions and 4 deletions
|
|
@ -192,6 +192,13 @@ sub voicestring {
|
|||
print RBSPEAK $string . "\n";
|
||||
close(RBSPEAK);
|
||||
}
|
||||
elsif ($name eq 'mimic') {
|
||||
$cmd = "mimic $tts_engine_opts -o $output";
|
||||
print("> $cmd\n") if $verbose;
|
||||
open (MIMIC, "| $cmd");
|
||||
print MIMIC $string . "\n";
|
||||
close(MIMIC);
|
||||
}
|
||||
}
|
||||
|
||||
# trim leading / trailing silence from the clip
|
||||
|
|
@ -305,7 +312,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.mp3", $ENV{'POOL'},
|
||||
$pool_file = sprintf("%s/%s-%s.mp3", $ENV{'POOL'},
|
||||
md5_hex("$voice $tts_engine $tts_engine_opts $encoder_opts"),
|
||||
$language);
|
||||
if (-f $pool_file) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue