summaryrefslogtreecommitdiffstats
path: root/god
diff options
context:
space:
mode:
authorYour Name <you@example.com>2013-10-16 20:41:22 +0200
committerYour Name <you@example.com>2013-10-16 20:41:22 +0200
commit65a26494a8ac4702177dae4797235453e604a981 (patch)
tree33068863e9c3f11d4ab75b68eafe265e56cf4f29 /god
parent2cbb42807815d06838f997249ea9d98d3e3ccbef (diff)
update naturalvoices_chached.sh
Diffstat (limited to 'god')
-rwxr-xr-xgod/ivan/naturalvoices_cached.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/god/ivan/naturalvoices_cached.sh b/god/ivan/naturalvoices_cached.sh
index d64d9b78..93ac1911 100755
--- a/god/ivan/naturalvoices_cached.sh
+++ b/god/ivan/naturalvoices_cached.sh
@@ -7,12 +7,12 @@
: ${1?what to say?Please provide text as parameter.}
text=$(echo $* | sed -e 's/ /+/g' -e 's/\//%2F/g')
-voice="klara"
+voice="${voice:-klara}"
-CACHE_DIR="/tmp/ivan-speech"
+CACHE_DIR="${CACHE_DIR:-/tmp/ivan-speech}"
mkdir -p "$CACHE_DIR"
-OUTFILE="$CACHE_DIR/${text}.wav"
+OUTFILE="$CACHE_DIR/${voice}_${text}.wav"
if [ ! -e $OUTFILE ] ;then