diff options
author | Jonas Häggqvist <rasher@rasher.dk> | 2009-03-02 21:36:48 +0000 |
---|---|---|
committer | Jonas Häggqvist <rasher@rasher.dk> | 2009-03-02 21:36:48 +0000 |
commit | 839bcdf46c2a6a269931cc9d3cc39cf45cc21a3b (patch) | |
tree | d538211ab4d1dd82c5eefe29a6a8dabb147ff149 /tools/configure | |
parent | 22b925495a130325538812807f7b75d40f9ee5f5 (diff) | |
download | rockbox-839bcdf46c2a6a269931cc9d3cc39cf45cc21a3b.tar.gz rockbox-839bcdf46c2a6a269931cc9d3cc39cf45cc21a3b.zip |
Ask which voice to use for Festival.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20181 a1c6a512-1295-4272-9138-f99709370657
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` |