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 | 494b2e6d6d93bd6febbab2fa086fc43310228512 (patch) | |
tree | 3a0d0028daf2cefa70c49bae463a3923cb18f4c9 /util | |
parent | 596c29972408c83a3e83bb3eb369734bd87d4f7b (diff) | |
parent | d865d9db85cc283ae3e7be20dbe4441a4e69f7b3 (diff) |
emergency merge
Diffstat (limited to 'util')
-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" | |