diff options
author | momo <m@hackathon.de> | 2012-04-11 13:40:33 +0200 |
---|---|---|
committer | momo <m@hackathon.de> | 2012-04-11 13:40:33 +0200 |
commit | 66a89c3311e126b0280369700ee6549683cfee99 (patch) | |
tree | 89d7dc78a277df77112a175045d3e6fe008794b7 | |
parent | 56c85ac5703410bc18143806af502abec11f4a04 (diff) |
//util/bin/naturalvoices2.sh: adding variables easy configurability
-rwxr-xr-x | util/bin/naturalvoices2.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/bin/naturalvoices2.sh b/util/bin/naturalvoices2.sh index 27c4f27e..4d8015aa 100755 --- a/util/bin/naturalvoices2.sh +++ b/util/bin/naturalvoices2.sh @@ -1,3 +1,6 @@ text=$(echo $* | sed 's/ /+/g') -mplayer http://192.20.225.36$( curl -Ss -A "Mozilla" -d "voice=klara" -d "txt=$text" -d "speakButton=SPEAK" http://192.20.225.36/tts/cgi-bin/nph-nvdemo |grep HREF|sed 's/.*\(".*"\).*/\1/' |sed -e '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') |