diff options
author | makefu <github@syntax-fehler.de> | 2011-08-06 01:56:55 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-08-06 01:56:55 +0200 |
commit | 1ad16dbc44ae38431b30ad32be9de75ac59806f2 (patch) | |
tree | 6c44b6a143715fbcc7daaf39bc3542dea1da759d /util/bin/naturalvoices.att | |
parent | 1a3e702fe07968a884462cfae82fb0bfce9123c6 (diff) | |
parent | 1a602de75dfac88f9b4b59096111fd94429b70ea (diff) |
emergency merge
Diffstat (limited to 'util/bin/naturalvoices.att')
-rwxr-xr-x | util/bin/naturalvoices.att | 6 |
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" | |