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 | 58f81272530ba62d211457593a04f7827f8a1dc5 (patch) | |
tree | 31476c2b6d901bae7032eff6867c0612e1cc07e0 /util/bin | |
parent | 67331f023a364d8e256c848ea42467d2ad870e47 (diff) | |
parent | 41fb21855aaaa4ada42df3aac6cd5b0b49e633a1 (diff) |
emergency merge
Diffstat (limited to 'util/bin')
-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" | |