summaryrefslogtreecommitdiffstats
path: root/god/ivan/naturalvoices_cached.sh
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-10-21 10:03:05 +0200
committermakefu <root@pigstarter.de>2013-10-21 10:03:05 +0200
commit8be4904ceac8502b3e3748c181b57e413412ee05 (patch)
tree61d69e9c5e6c758857d700e5cb16671bf108155b /god/ivan/naturalvoices_cached.sh
parent30f74ddba99724ae697fc8b7aa366eedb3129a86 (diff)
parent4ca35a41559dc09cbdf6a660d816ad6b05d0d67e (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'god/ivan/naturalvoices_cached.sh')
-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