summaryrefslogtreecommitdiffstats
path: root/util/bin/naturalvoices.att
diff options
context:
space:
mode:
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" |