mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
tools: More fixes for relese voice script.
...Was broken for piper-based models Change-Id: Ib1df918ecde69bff6b048f8dad7451399b93d05d
This commit is contained in:
parent
c3b8fcae33
commit
1959fade86
1 changed files with 14 additions and 4 deletions
|
@ -84,8 +84,18 @@ for my $b (&usablebuilds) {
|
||||||
next if ($builds{$b}{voice}); # no variants
|
next if ($builds{$b}{voice}); # no variants
|
||||||
|
|
||||||
for my $v (&allvoices) {
|
for my $v (&allvoices) {
|
||||||
# print " runone $b $v ($voices{$v}->{lang} via $voices{$v}->{defengine})\n";
|
my %voice = %{$voices{$v}};
|
||||||
runone($b, $v, $voices{$v}->{lang}, $voices{$v}->{defengine},
|
|
||||||
"-1", $voices{$v}->{engines}->{$voices{$v}->{defengine}});
|
my $engine = $voice{"defengine"};
|
||||||
}
|
my ($opts, $vf);
|
||||||
|
if ($engine eq 'piper') {
|
||||||
|
$vf = $voice{"engines"}->{$engine};
|
||||||
|
$opts = "";
|
||||||
|
} else {
|
||||||
|
$vf = -1;
|
||||||
|
$opts = $voice{"engines"}->{$engine};
|
||||||
|
}
|
||||||
|
# print " runone $b $v ($voice{lang} via $engine)\n";
|
||||||
|
runone($b, $v, $voice{"lang"}, $engine, $vf, $opts);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue