1
0
Fork 0
forked from len0rd/rockbox

Support using 'rbspeak' to generate voice files.

(Full credit to Igor Poretsky)

Change-Id: Ib9c5d2748cd7e0543b7fd110e83b4656089254b8
This commit is contained in:
Solomon Peachy 2018-12-22 20:26:09 -05:00
parent 928557bb17
commit e598ba13f5
2 changed files with 25 additions and 4 deletions

View file

@ -184,6 +184,14 @@ sub voicestring {
print("> $cmd\n") if $verbose;
system($cmd);
}
elsif ($name eq 'rbspeak') {
# xxx: $tts_engine_opts isn't used
$cmd = "rbspeak $output";
print("> $cmd\n") if $verbose;
open(RBSPEAK, "| $cmd");
print RBSPEAK $string . "\n";
close(RBSPEAK);
}
}
# trim leading / trailing silence from the clip