diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-11 10:05:40 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-11 15:01:33 +0000 |
commit | aad57ea1cc59144475cc80538523121d97b293d4 (patch) | |
tree | 9796bef0b640976808a9243166070e2edcba58c4 /tools/configure | |
parent | 185d2bbb6a967ad5fb72363677c9b14d1011c949 (diff) | |
download | rockbox-aad57ea1cc59144475cc80538523121d97b293d4.tar.gz rockbox-aad57ea1cc59144475cc80538523121d97b293d4.zip |
voice: Further enhancements for multi-lingual voice generation
* configure: allow use of full tts engine names when making selection
* voice.pl: fixes for espeak-ng
* build.pm: Add a list of "standard" voices for tooling use
The latter will be used by the nightly builder infrastructure to
determine what voices to generate.
Change-Id: Iff55288f94a30fbe08d8345b730969b7264b5e0f
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/configure b/tools/configure index aab3e59dfb..96d45a9173 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -1167,8 +1167,8 @@ voiceconfig () { | |||
1167 | DEFAULT_CHOICE="O" | 1167 | DEFAULT_CHOICE="O" |
1168 | fi | 1168 | fi |
1169 | 1169 | ||
1170 | if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$MIMIC"] && [ "$MIMIC" = "$SWIFT" ] && [ "$SWIFT" = "$RBSPEAK" ] && [ "$RBSPEAK" = "$GTTS" ] ; then | 1170 | if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$MIMIC"] && [ "$MIMIC" = "$SWIFT" ] && [ "$SWIFT" = "$GTTS" ] && [ "$GTTS" = "$RBSPEAK" ] ; then |
1171 | echo "You need Festival, eSpeak, Mimic, Flite, or rbspeak in your path, or SAPI available to build voice files" | 1171 | echo "You need Festival, eSpeak, Mimic, Flite, gtts, or rbspeak in your path, or SAPI available to build voice files" |
1172 | exit 3 | 1172 | exit 3 |
1173 | fi | 1173 | fi |
1174 | 1174 | ||
@@ -1181,42 +1181,42 @@ voiceconfig () { | |||
1181 | advopts="$advopts --tts=$option" | 1181 | advopts="$advopts --tts=$option" |
1182 | fi | 1182 | fi |
1183 | case "$option" in | 1183 | case "$option" in |
1184 | [Ll]) | 1184 | [Ll]|flite) |
1185 | TTS_ENGINE="flite" | 1185 | TTS_ENGINE="flite" |
1186 | NOISEFLOOR="500" # TODO: check this value | 1186 | NOISEFLOOR="500" # TODO: check this value |
1187 | TTS_OPTS=$FLITE_OPTS | 1187 | TTS_OPTS=$FLITE_OPTS |
1188 | ;; | 1188 | ;; |
1189 | [Ee]) | 1189 | [Ee]|espeak) |
1190 | TTS_ENGINE="espeak" | 1190 | TTS_ENGINE="espeak" |
1191 | NOISEFLOOR="500" | 1191 | NOISEFLOOR="500" |
1192 | TTS_OPTS=$ESPEAK_OPTS | 1192 | TTS_OPTS=$ESPEAK_OPTS |
1193 | ;; | 1193 | ;; |
1194 | [Ff]) | 1194 | [Ff]|festival) |
1195 | TTS_ENGINE="festival" | 1195 | TTS_ENGINE="festival" |
1196 | NOISEFLOOR="500" | 1196 | NOISEFLOOR="500" |
1197 | TTS_OPTS=$FESTIVAL_OPTS | 1197 | TTS_OPTS=$FESTIVAL_OPTS |
1198 | ;; | 1198 | ;; |
1199 | [Mm]) | 1199 | [Mm]|mimic) |
1200 | TTS_ENGINE="mimic" | 1200 | TTS_ENGINE="mimic" |
1201 | NOISEFLOOR="500" | 1201 | NOISEFLOOR="500" |
1202 | TTS_OPTS=$MIMIC_OPTS | 1202 | TTS_OPTS=$MIMIC_OPTS |
1203 | ;; | 1203 | ;; |
1204 | [Ss]) | 1204 | [Ss]|sapi) |
1205 | TTS_ENGINE="sapi" | 1205 | TTS_ENGINE="sapi" |
1206 | NOISEFLOOR="500" | 1206 | NOISEFLOOR="500" |
1207 | TTS_OPTS=$SAPI_OPTS | 1207 | TTS_OPTS=$SAPI_OPTS |
1208 | ;; | 1208 | ;; |
1209 | [Ww]) | 1209 | [Ww]|swift) |
1210 | TTS_ENGINE="swift" | 1210 | TTS_ENGINE="swift" |
1211 | NOISEFLOOR="500" | 1211 | NOISEFLOOR="500" |
1212 | TTS_OPTS=$SWIFT_OPTS | 1212 | TTS_OPTS=$SWIFT_OPTS |
1213 | ;; | 1213 | ;; |
1214 | [Gg) | 1214 | [Gg]|gtts) |
1215 | TTS_ENGINE="gtts" | 1215 | TTS_ENGINE="gtts" |
1216 | NOISEFLOOR="500" | 1216 | NOISEFLOOR="500" |
1217 | TTS_OPTS=$GTTS_OPTS | 1217 | TTS_OPTS=$GTTS_OPTS |
1218 | ;; | 1218 | ;; |
1219 | [Oo]) | 1219 | [Oo]|rbspeak) |
1220 | TTS_ENGINE="rbspeak" | 1220 | TTS_ENGINE="rbspeak" |
1221 | NOISEFLOOR="500" | 1221 | NOISEFLOOR="500" |
1222 | TTS_OPTS=$RBSPEAK_OPTS | 1222 | TTS_OPTS=$RBSPEAK_OPTS |