From bab3c10e3bc719b669869196c8f1a4d6073f3378 Mon Sep 17 00:00:00 2001 From: death Date: Sat, 31 Mar 2012 22:02:56 +0200 Subject: new version --- util/bin/naturalvoices2.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 util/bin/naturalvoices2.sh (limited to 'util/bin/naturalvoices2.sh') diff --git a/util/bin/naturalvoices2.sh b/util/bin/naturalvoices2.sh new file mode 100755 index 00000000..a01ff621 --- /dev/null +++ b/util/bin/naturalvoices2.sh @@ -0,0 +1,3 @@ +text=$(echo $* | sed 's/ /+/g') +mplayer2 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') + -- cgit v1.2.3 From 61cc151c54098a424f6f0ecfa33b065efeb292a0 Mon Sep 17 00:00:00 2001 From: death Date: Sat, 31 Mar 2012 22:03:31 +0200 Subject: fixed --- util/bin/naturalvoices2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/bin/naturalvoices2.sh') diff --git a/util/bin/naturalvoices2.sh b/util/bin/naturalvoices2.sh index a01ff621..27c4f27e 100755 --- a/util/bin/naturalvoices2.sh +++ b/util/bin/naturalvoices2.sh @@ -1,3 +1,3 @@ text=$(echo $* | sed 's/ /+/g') -mplayer2 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') +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') -- cgit v1.2.3 From 66a89c3311e126b0280369700ee6549683cfee99 Mon Sep 17 00:00:00 2001 From: momo Date: Wed, 11 Apr 2012 13:40:33 +0200 Subject: //util/bin/naturalvoices2.sh: adding variables easy configurability --- util/bin/naturalvoices2.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'util/bin/naturalvoices2.sh') 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') -- cgit v1.2.3