summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-06 01:56:55 +0200
committermakefu <github@syntax-fehler.de>2011-08-06 01:56:55 +0200
commit494b2e6d6d93bd6febbab2fa086fc43310228512 (patch)
tree3a0d0028daf2cefa70c49bae463a3923cb18f4c9 /util
parent596c29972408c83a3e83bb3eb369734bd87d4f7b (diff)
parentd865d9db85cc283ae3e7be20dbe4441a4e69f7b3 (diff)
emergency merge
Diffstat (limited to 'util')
-rwxr-xr-xutil/bin/naturalvoices.att6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/bin/naturalvoices.att b/util/bin/naturalvoices.att
index e329694f..9a944d8b 100755
--- a/util/bin/naturalvoices.att
+++ b/util/bin/naturalvoices.att
@@ -5,6 +5,10 @@ A=Mozilla
baseURL="http://192.20.225.36"
url="$baseURL/tts/cgi-bin/nph-talk"
+if test -h "$0"; then
+ voice="${voice-"`basename "$0"`"}"
+fi
+
pwd="$(dirname "$(readlink -f "$0")")"
for x in \
@@ -29,7 +33,7 @@ done
node "$(readlink -f "$pwd/../../submodules/github/visionmedia/query")" "\$@"
}
curl -sS -A "\${A-Mozilla}" \\
- -d "voice=\${voice-klara}" \\
+ -d "voice=\${voice-`basename "$0"`}" \\
-d "txt=\$text" \\
-d "downloadButton=DOWNLOAD" \\
"$url" |