From ebc45c87a62b079743e3f46923c02c299886a835 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 2 Sep 2013 17:24:11 +0200 Subject: remove now obsolete naturalvoices script --- util/bin/naturalvoices2.sh | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100755 util/bin/naturalvoices2.sh diff --git a/util/bin/naturalvoices2.sh b/util/bin/naturalvoices2.sh deleted file mode 100755 index c310414f..00000000 --- a/util/bin/naturalvoices2.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -text=$(echo $* | sed 's/ /+/g') -voice="klara" -base_url="http://192.20.225.36" - -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 -- cgit v1.2.3 From ff8a17e1fdf40ce8c7b6479f18f0476d442a8797 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 2 Sep 2013 17:26:47 +0200 Subject: naturalvoices3 supersedes/replaces naturalvoices.att --- util/bin/naturalvoices.att | 50 ++++++++-------------------------------------- util/bin/naturalvoices3.sh | 10 ---------- 2 files changed, 8 insertions(+), 52 deletions(-) delete mode 100755 util/bin/naturalvoices3.sh diff --git a/util/bin/naturalvoices.att b/util/bin/naturalvoices.att index 07fb6e17..6085e511 100755 --- a/util/bin/naturalvoices.att +++ b/util/bin/naturalvoices.att @@ -1,44 +1,10 @@ -#! /bin/sh -set -euf +#!/bin/sh +text=$(echo $* | sed 's/ /+/g') +voice="klara" +base_url="http://192.20.225.36" -A=Mozilla -baseURL="http://192.20.225.36" -url="$baseURL/tts/cgi-bin/nph-talk" +TMPFILE=`mktemp` +trap "rm $TMPFILE" TERM INT EXIT -if test -h "$0"; then - voice="${voice-"`basename "$0"`"}" -fi - -pwd="$(dirname "$(readlink -f "$0")")" - -for x in \ - "$pwd/../../submodules/github/tmpvar" \ - "$pwd/../../submodules/github/mikeal" \ - "$pwd/../../submodules/github/NV" \ - "$pwd/../../submodules/github/tautologistics" \ -; do - export NODE_PATH="`readlink -f "$x"`${NODE_PATH+:$NODE_PATH}" -done - -# ensure query is ready -(cd "$pwd/../.." && git submodule update --init) - -{ - for arg; do echo "$arg"; done | sed -n ' - s/^--\(.*=.*\)/\1/p;t - s/.*/text="${text+$text }&"/p;t - ' - cat<