diff options
Diffstat (limited to 'util/bin/naturalvoices.att')
-rwxr-xr-x | util/bin/naturalvoices.att | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/util/bin/naturalvoices.att b/util/bin/naturalvoices.att new file mode 100755 index 00000000..ea893fc0 --- /dev/null +++ b/util/bin/naturalvoices.att @@ -0,0 +1,18 @@ +#!/bin/sh +cd $(dirname $(readlink -f $0)) + +. ../lib/naturalvoices/att.sh + +: ${1?please provide \$1 as text} + +text=$(echo $* | sed 's/ /+/g') +voice="${voice:-reiner}" + +OUTFILE="`mktemp /tmp/voice.XXXXXXXX`" +trap "rm $OUTFILE" TERM INT EXIT + +get_tts "$text" + +play_file "$OUTFILE" + + |