summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-09-02 18:36:19 +0200
committermakefu <github@syntax-fehler.de>2013-09-02 18:36:19 +0200
commit98686d061bd4b3c106a092983fa47463c623a4aa (patch)
tree8bd0f71a6c5a3339a83a2abdf1d2f46a4dddf83b
parentb8d58dfa8ba5ae2fae9ac755e0c663c5ba08576f (diff)
parent813ef976882da5ce78d10bb2ab9227bb8e53cfa3 (diff)
merge util/lib/naturalvoices/att.sh
-rwxr-xr-xutil/lib/naturalvoices/att.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/lib/naturalvoices/att.sh b/util/lib/naturalvoices/att.sh
index 2f80ec94..892e0bc0 100755
--- a/util/lib/naturalvoices/att.sh
+++ b/util/lib/naturalvoices/att.sh
@@ -12,19 +12,19 @@ get_tts(){
# $@ - input text
: ${OUTFILE?please provide OUTFILE}
- text=$(echo $* | sed -e 's/ /+/g' -e 's/\//%2F/g')
+ text=$(echo $* | sed -e "s/ /+/g" -e "s/\//%2F/g")
voice="${voice:-klara}"
- ip=192.20.225.36
+ ip="192.20.225.36"
base_url="http://$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' \
+ curl -sS $base_url$( curl -Ss -H "Host:$ip" \
+ -H "Origin:http://www2.research.att.com" \
+ -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' \
- -H 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
- $base_url/tts/cgi-bin/nph-nvttsdemo | \
+ -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/' | \
- sed -e 's/"//g' ) -O "$OUTFILE" 2>/dev/null
+ sed -e 's/"//g' ) > "$OUTFILE"
}
play_file(){