diff options
Diffstat (limited to 'tools/voicecommon.sh')
-rw-r--r-- | tools/voicecommon.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/voicecommon.sh b/tools/voicecommon.sh index e18308ee4e..61e0d07bdd 100644 --- a/tools/voicecommon.sh +++ b/tools/voicecommon.sh | |||
@@ -72,7 +72,7 @@ FESTIVAL_HOST=localhost | |||
72 | FESTIVAL_PORT=1314 | 72 | FESTIVAL_PORT=1314 |
73 | # where to log the Festival client output | 73 | # where to log the Festival client output |
74 | FESTIVAL_LOG=/dev/null | 74 | FESTIVAL_LOG=/dev/null |
75 | # other options to the festival client | 75 | # other options to the festival server |
76 | FESTIVAL_OPTS="" | 76 | FESTIVAL_OPTS="" |
77 | 77 | ||
78 | ################## | 78 | ################## |
@@ -140,7 +140,7 @@ init_tts() { | |||
140 | exit 3 | 140 | exit 3 |
141 | fi | 141 | fi |
142 | FESTIVAL_HOST='localhost' | 142 | FESTIVAL_HOST='localhost' |
143 | $FESTIVAL_BIN --server 2>&1 > /dev/null & | 143 | $FESTIVAL_BIN $FESTIVAL_OPTS --server 2>&1 > /dev/null & |
144 | FESTIVAL_SERVER_PID=$! | 144 | FESTIVAL_SERVER_PID=$! |
145 | sleep 3 | 145 | sleep 3 |
146 | if [ `ps | grep -c "^\ *$FESTIVAL_SERVER_PID"` -ne 1 ]; then | 146 | if [ `ps | grep -c "^\ *$FESTIVAL_SERVER_PID"` -ne 1 ]; then |
@@ -271,7 +271,7 @@ voice() { | |||
271 | case $TTS_ENGINE in | 271 | case $TTS_ENGINE in |
272 | festival) | 272 | festival) |
273 | echo "Action: Generate $WAV_FILE with festival" | 273 | echo "Action: Generate $WAV_FILE with festival" |
274 | echo -E "$TO_SPEAK" | $FESTIVAL_CLIENT $FESTIVAL_OPTS \ | 274 | echo -E "$TO_SPEAK" | $FESTIVAL_CLIENT \ |
275 | --server $FESTIVAL_HOST \ | 275 | --server $FESTIVAL_HOST \ |
276 | --otype riff --ttw --output "$WAV_FILE" 2>"$WAV_FILE" | 276 | --otype riff --ttw --output "$WAV_FILE" 2>"$WAV_FILE" |
277 | ;; | 277 | ;; |