tools: More fixes for relese voice script.

...Was broken for piper-based models

Change-Id: Ib1df918ecde69bff6b048f8dad7451399b93d05d
This commit is contained in:
Solomon Peachy 2025-03-27 07:15:36 -04:00
parent c3b8fcae33
commit 1959fade86

View file

@ -84,8 +84,18 @@ for my $b (&usablebuilds) {
next if ($builds{$b}{voice}); # no variants
for my $v (&allvoices) {
# print " runone $b $v ($voices{$v}->{lang} via $voices{$v}->{defengine})\n";
runone($b, $v, $voices{$v}->{lang}, $voices{$v}->{defengine},
"-1", $voices{$v}->{engines}->{$voices{$v}->{defengine}});
my %voice = %{$voices{$v}};
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);
}
}