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
commit019766003237422f7179b32d205c6b6f8e3e9b5a (patch)
tree1d9cfc9c343f306202af01c00224e91e06df77df /util/bin/naturalvoices.att
parente7abcfa79985c555a79e36e371d56a524a689923 (diff)
parenta412a5761a4c943d91eb25ff9be9af26da94deca (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" |