diff options
author | makefu <github@syntax-fehler.de> | 2013-07-30 22:20:25 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-07-30 22:20:25 +0200 |
commit | d93cc223bba4d1f5a4100ac0967e442ba051e6da (patch) | |
tree | 022773ebf34354a1bee2c8e4936f6ccb40fd8db1 /util/bin | |
parent | bad750a32b049a52b4c630399bd5e79cb5fa9ec9 (diff) |
natural voices is using aplay instead of mplayer
Diffstat (limited to 'util/bin')
-rwxr-xr-x | util/bin/naturalvoices2.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util/bin/naturalvoices2.sh b/util/bin/naturalvoices2.sh index 4d8015aa..6d6c924b 100755 --- a/util/bin/naturalvoices2.sh +++ b/util/bin/naturalvoices2.sh @@ -1,6 +1,11 @@ +#!/bin/sh text=$(echo $* | sed 's/ /+/g') voice="klara" base_url="http://192.20.225.36" -mplayer $base_url$( curl -Ss -A "Mozilla" -d "voice=$voice" -d "txt=$text" -d "speakButton=SPEAK" $base_url/tts/cgi-bin/nph-nvdemo |grep HREF|sed 's/.*\(".*"\).*/\1/' |sed -e 's/"//g') +TMPFILE=`mktemp` +trap "rm $TMPFILE" TERM INT EXIT +wget $base_url$( curl -Ss -A "Mozilla" -d "voice=$voice" -d "txt=$text" -d "speakButton=SPEAK" $base_url/tts/cgi-bin/nph-nvdemo |grep HREF|sed 's/.*\(".*"\).*/\1/' |sed -e 's/"//g') -O $TMPFILE +aplay $TMPFILE +rm $TMPFILE |