summaryrefslogtreecommitdiffstats
path: root/util/bin/naturalvoices.att
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
commit1ad16dbc44ae38431b30ad32be9de75ac59806f2 (patch)
tree6c44b6a143715fbcc7daaf39bc3542dea1da759d /util/bin/naturalvoices.att
parent1a3e702fe07968a884462cfae82fb0bfce9123c6 (diff)
parent1a602de75dfac88f9b4b59096111fd94429b70ea (diff)
emergency merge
Diffstat (limited to 'util/bin/naturalvoices.att')
-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" |