diff options
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index 04d8e8d93f..b689e9b18a 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -526,6 +526,29 @@ voiceconfig () { | |||
526 | esac | 526 | esac |
527 | echo "Using $TTS_ENGINE for TTS" | 527 | echo "Using $TTS_ENGINE for TTS" |
528 | 528 | ||
529 | # Select which voice to use for Festival | ||
530 | if [ "$TTS_ENGINE" = "festival" ]; then | ||
531 | i=1 | ||
532 | for voice in `echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1 foobar/'|sort`; do | ||
533 | if [ "$i" = "1" ]; then | ||
534 | TTS_FESTIVAL_VOICE="$voice" # Default choice | ||
535 | fi | ||
536 | printf "%3d. %s\n" "$i" "$voice" | ||
537 | i=`expr $i + 1` | ||
538 | done | ||
539 | printf "Please select which Festival voice to use (default is $TTS_FESTIVAL_VOICE): " | ||
540 | CHOICE=`input` | ||
541 | i=1 | ||
542 | for voice in `echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1 foobar/'|sort`; do | ||
543 | if [ "$i" = "$CHOICE" -o "$voice" = "$CHOICE" ]; then | ||
544 | TTS_FESTIVAL_VOICE="$voice" | ||
545 | fi | ||
546 | i=`expr $i + 1` | ||
547 | done | ||
548 | echo "Festival voice set to $TTS_FESTIVAL_VOICE" | ||
549 | echo "(voice_$TTS_FESTIVAL_VOICE)" > festival-prolog.scm | ||
550 | fi | ||
551 | |||
529 | # Allow the user to input manual commandline options | 552 | # Allow the user to input manual commandline options |
530 | printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): " | 553 | printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): " |
531 | USER_TTS_OPTS=`input` | 554 | USER_TTS_OPTS=`input` |