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 | 4ba5f6f8bf321c4c1f1c0f5652248fbbc2cd2419 (patch) | |
tree | 42e042d5c7ff27584c64742ec3dcd82fca0c69ac /util/bin/naturalvoices.att | |
parent | 67331f023a364d8e256c848ea42467d2ad870e47 (diff) | |
parent | 94bc4b14ecaa9935dcddfd104704c05c6fa13764 (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" | |