From 5dbea469a6b476d338353c46473ba9bd3ef0bcb5 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 2 Sep 2007 22:32:34 +0000 Subject: SAPI voice file generation: * Added language matching and voice selection (use TTS option /voice: 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 --- tools/configure | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tools/configure') diff --git a/tools/configure b/tools/configure index c62f7d0571..2549595a62 100755 --- a/tools/configure +++ b/tools/configure @@ -378,20 +378,20 @@ voiceconfig () { fi # Allow SAPI if Windows is in use if [ -f "`which winver`" ]; then - SAPI5="(S)API5 " - SAPI5_OPTS="" - DEFAULT_TTS="sapi5" - DEFAULT_TTS_OPTS=$SAPI5_OPTS + SAPI="(S)API " + SAPI_OPTS="" + DEFAULT_TTS="sapi" + DEFAULT_TTS_OPTS=$SAPI_OPTS DEFAULT_NOISEFLOOR="500" DEFAULT_CHOICE="S" fi - if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI5" ] && [ "$SAPI5" = "$SWIFT" ]; then - echo "You need Festival, eSpeak or Flite in your path, or SAPI5 available to build voice files" + if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then + echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files" exit fi - echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI5}${SWIFT}(${DEFAULT_CHOICE})?" + echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?" option=`input` case "$option" in [Ll]) @@ -410,9 +410,9 @@ voiceconfig () { TTS_OPTS=$FESTIVAL_OPTS ;; [Ss]) - TTS_ENGINE="sapi5" + TTS_ENGINE="sapi" NOISEFLOOR="500" - TTS_OPTS=$SAPI5_OPTS + TTS_OPTS=$SAPI_OPTS ;; [Ww]) TTS_ENGINE="swift" -- cgit v1.2.3