summaryrefslogtreecommitdiffstats
path: root/util/bin/naturalvoices.att
blob: ea893fc01b945749b0ee2c9e6e5a3f454d2d3111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"