forked from len0rd/rockbox
voice: More voice generation fixes:
* espeak vs espeak-ng (prefer the latter!) * voicepool was busted for most non-english strings Change-Id: Iae6df0f5426155b7b1f444160814ff9ef4581f21
This commit is contained in:
parent
938d820355
commit
185d2bbb6a
2 changed files with 6 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ use Digest::MD5 qw(md5_hex);
|
|||
use DirHandle;
|
||||
use open ':encoding(utf8)';
|
||||
use open ':std';
|
||||
use utf8;
|
||||
|
||||
sub printusage {
|
||||
print <<USAGE
|
||||
|
|
@ -383,7 +384,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'},
|
||||
md5_hex("$voice $tts_engine $tts_engine_opts $encoder_opts"),
|
||||
md5_hex(Encode::encode_utf8("$voice $tts_engine $tts_engine_opts $encoder_opts")),
|
||||
$language);
|
||||
if (-f $pool_file) {
|
||||
printf("Re-using %s (%s) from pool\n", $id, $voice) if $verbose;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue