From 06b25e5e0c592032d9152fed7763c2164074d162 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 00:05:05 +0200 Subject: util naturalvoices: enable symlink calls --- util/bin/naturalvoices.att | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/bin/naturalvoices.att b/util/bin/naturalvoices.att index e329694f..656a2c5e 100755 --- a/util/bin/naturalvoices.att +++ b/util/bin/naturalvoices.att @@ -29,7 +29,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" | -- cgit v1.2.3 From bf9faf4c3ccbdfb2def64726d07367fe656d4e9c Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 00:14:09 +0200 Subject: util naturalvoices: enable symlink calls --- util/bin/naturalvoices.att | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util') diff --git a/util/bin/naturalvoices.att b/util/bin/naturalvoices.att index e329694f..7955db63 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 \ -- cgit v1.2.3