diff options
Diffstat (limited to 'god/ivan/naturalvoices_cached.sh')
-rwxr-xr-x | god/ivan/naturalvoices_cached.sh | 6 |
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 |