summaryrefslogtreecommitdiffstats
path: root/god
diff options
context:
space:
mode:
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