summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-13 10:52:02 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-13 10:52:50 -0400
commitead398a8f344294143d69fb86574a118e34570b0 (patch)
treebaabed1537795dda1ad70eefca89c0af899a6104
parentcb3363f57d6e909d8931e4db1e82094972a3f08e (diff)
downloadrockbox-ead398a8f344294143d69fb86574a118e34570b0.tar.gz
rockbox-ead398a8f344294143d69fb86574a118e34570b0.tar.bz2
rockbox-ead398a8f344294143d69fb86574a118e34570b0.zip
builds: Allow voices to be filtered by an 'enabled' flag.
(So only voices that are confirmed okay are built) Change-Id: I78dae45182352e5939941744fba2c0e015866804
-rw-r--r--tools/builds.pm25
1 files changed, 16 insertions, 9 deletions
diff --git a/tools/builds.pm b/tools/builds.pm
index f6bb1a80fd..244c5778f1 100644
--- a/tools/builds.pm
+++ b/tools/builds.pm
@@ -1,3 +1,6 @@
+# Note! This is used by the www.rockbox.org infrastructure
+# to know what targets/etc should be displayed, built, and so forth.
+#
$publicrelease="3.15";
$releasedate="15 Nov 2019";
$releasenotes="/wiki/ReleaseNotes315";
@@ -501,12 +504,13 @@ sub allbuilds {
# 'voicename' => {
# lang => 'langname', # source rockbox .lang file
# name => 'Native Name ( English Name )', # descriptive text
-# short => 'sss', # short iso-ish text
+# short => 'xx', # short iso621-ish text
# defengine => 'enginename', # which engine to prefer
# engines => { # supported engines
-# enginea = '-opt1=x -opt2=y', # options for enginea
-# engineb = '-lang=xx', # options for engineb
+# enginenamea = '-opt1=x -opt2=y', # options for enginea
+# enginenameb = '-lang=xx', # options for engineb
# },
+# enabled => 1, # set to 0 or leave out to disable
# }
# A single source language file can have many voice variants.
@@ -514,17 +518,18 @@ sub allbuilds {
# Also, different genders or regional accents for the same language
%voices = (
- # UK English always comes first
+ # UK English always comes first; it's the "master"
'english' => {
'lang' => 'english',
'name' => 'UK English',
- 'short' => 'en-uk',
+ 'short' => 'en-gb',
'defengine' => 'espeak',
'engines' => {
'festival' => '--language english',
- 'espeak' => '-ven-gb',
+ 'espeak' => '-ven-gb -k 5',
'gtts' => '-l en-gb',
},
+ 'enabled' => 1,
},
# Everything else in alphabetical order
'deutsch' => {
@@ -544,9 +549,10 @@ sub allbuilds {
'defengine' => 'espeak',
'engines' => {
'festival' => '--language english',
- 'espeak' => '-ven-us',
+ 'espeak' => '-ven-us -k 5',
'gtts' => '-l en-us',
},
+ 'enabled' => 1,
},
'greek' => {
'lang' => 'greek',
@@ -587,6 +593,7 @@ sub allbuilds {
'espeak' => '-vpl',
'gtts' => '-l pl',
},
+ 'enabled' => 1,
},
'russian' => {
'lang' => 'russian',
@@ -628,7 +635,7 @@ sub allvoices {
my @list;
for my $b (sort bylang keys %voices) {
- push @list, $b;
+ push @list, $b if (defined($voices{$b}->{enabled}) && $voices{$b}->{enabled});
}
return @list;
@@ -639,7 +646,7 @@ sub voicesforlang($) {
my @list;
for my $b (sort bylang keys %voices) {
- push @list, $b if ($voices{$b}{lang} eq $b);
+ push @list, $b if ($voices{$b}{lang} eq $b && defined($voices{$b}->{enabled}) && $voices{$b}->{enabled});
}
return @list;