summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-09-02 18:24:27 +0200
committermakefu <github@syntax-fehler.de>2013-09-02 18:24:35 +0200
commitb8d58dfa8ba5ae2fae9ac755e0c663c5ba08576f (patch)
treeabdc0f8c95f2822bdf34d1f21181ceb5fe688b38 /util
parent352a8ccb2f1a802eb9d15c9851e716bd9454c589 (diff)
//lib/naturalvoices/att.sh ' -> "
Diffstat (limited to 'util')
-rwxr-xr-xutil/lib/naturalvoices/att.sh6
-rwxr-xr-xutil/t/naturalvoices/att-produces-output2
2 files changed, 4 insertions, 4 deletions
diff --git a/util/lib/naturalvoices/att.sh b/util/lib/naturalvoices/att.sh
index 5e966c79..2f80ec94 100755
--- a/util/lib/naturalvoices/att.sh
+++ b/util/lib/naturalvoices/att.sh
@@ -16,11 +16,11 @@ get_tts(){
voice="${voice:-klara}"
ip=192.20.225.36
base_url="http://$ip"
- wget $base_url$( curl -Ss -H 'Host:$ip' \
+ wget $base_url$( curl -Ss -H "Host:$ip" \
-H 'Origin:http://www2.research.att.com' \
- -e "http://www2.research.att.com/~ttsweb/tts/demo.php" \
+ -e 'http://www2.research.att.com/~ttsweb/tts/demo.php' \
-A "Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0" \
- -d "voice=$voice" -d "txt=$text" -d "speakButton=SPEAK" \
+ -d "voice=$voice" -d "txt=$text" -d 'speakButton=SPEAK' \
-H 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
$base_url/tts/cgi-bin/nph-nvttsdemo | \
grep HREF|sed 's/.*\(".*"\).*/\1/' | \
diff --git a/util/t/naturalvoices/att-produces-output b/util/t/naturalvoices/att-produces-output
index c9b280b1..17b40144 100755
--- a/util/t/naturalvoices/att-produces-output
+++ b/util/t/naturalvoices/att-produces-output
@@ -4,7 +4,7 @@ set -euf
cd $(dirname $(readlink -f $0))
. ../../lib/naturalvoices/att.sh
-OUTFILE="`mktemp`"
+OUTFILE="`mktemp /tmp/voice.XXXXXXXX`"
trap "rm $OUTFILE" TERM INT EXIT
get_tts 'hallo, welt!'
file $OUTFILE |grep -q WAVE