diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-09-02 22:32:34 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-09-02 22:32:34 +0000 |
commit | 5dbea469a6b476d338353c46473ba9bd3ef0bcb5 (patch) | |
tree | 3418fa11ec37dc9bc20827f8531c9bd500c17b5c /tools/configure | |
parent | 09d66ac4567936ff2c797d7ea0e7f61ad43264fc (diff) | |
download | rockbox-5dbea469a6b476d338353c46473ba9bd3ef0bcb5.tar.gz rockbox-5dbea469a6b476d338353c46473ba9bd3ef0bcb5.zip |
SAPI voice file generation: * Added language matching and voice selection (use TTS option /voice:<name> to select; voices with spaces in the name need the options quotes). * Added SAPI4 support (use TTS option /sapi4; voice file generation takes hours...)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14587 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/configure b/tools/configure index c62f7d0571..2549595a62 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -378,20 +378,20 @@ voiceconfig () { | |||
378 | fi | 378 | fi |
379 | # Allow SAPI if Windows is in use | 379 | # Allow SAPI if Windows is in use |
380 | if [ -f "`which winver`" ]; then | 380 | if [ -f "`which winver`" ]; then |
381 | SAPI5="(S)API5 " | 381 | SAPI="(S)API " |
382 | SAPI5_OPTS="" | 382 | SAPI_OPTS="" |
383 | DEFAULT_TTS="sapi5" | 383 | DEFAULT_TTS="sapi" |
384 | DEFAULT_TTS_OPTS=$SAPI5_OPTS | 384 | DEFAULT_TTS_OPTS=$SAPI_OPTS |
385 | DEFAULT_NOISEFLOOR="500" | 385 | DEFAULT_NOISEFLOOR="500" |
386 | DEFAULT_CHOICE="S" | 386 | DEFAULT_CHOICE="S" |
387 | fi | 387 | fi |
388 | 388 | ||
389 | if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI5" ] && [ "$SAPI5" = "$SWIFT" ]; then | 389 | if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then |
390 | echo "You need Festival, eSpeak or Flite in your path, or SAPI5 available to build voice files" | 390 | echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files" |
391 | exit | 391 | exit |
392 | fi | 392 | fi |
393 | 393 | ||
394 | echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI5}${SWIFT}(${DEFAULT_CHOICE})?" | 394 | echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?" |
395 | option=`input` | 395 | option=`input` |
396 | case "$option" in | 396 | case "$option" in |
397 | [Ll]) | 397 | [Ll]) |
@@ -410,9 +410,9 @@ voiceconfig () { | |||
410 | TTS_OPTS=$FESTIVAL_OPTS | 410 | TTS_OPTS=$FESTIVAL_OPTS |
411 | ;; | 411 | ;; |
412 | [Ss]) | 412 | [Ss]) |
413 | TTS_ENGINE="sapi5" | 413 | TTS_ENGINE="sapi" |
414 | NOISEFLOOR="500" | 414 | NOISEFLOOR="500" |
415 | TTS_OPTS=$SAPI5_OPTS | 415 | TTS_OPTS=$SAPI_OPTS |
416 | ;; | 416 | ;; |
417 | [Ww]) | 417 | [Ww]) |
418 | TTS_ENGINE="swift" | 418 | TTS_ENGINE="swift" |