shithub: rc

ref: 1cf04fdaabf1dbfb7fb4ce59a8cd41a2336d8f18
dir: /bin/tell/

View raw version
#!/bin/rc
rfork ne
v=awb
if(~ $1 -v){
	v=$2
	shift 2
}
if(! ~ $#* 1 || ~ $#v 0){
	echo usage: $0 '[-v voice]' file >[1=2]
	exit usage
}
tail -f $1 | \
	sed -u 's/^[0-9]+:[0-9]+ //' | \
	audio/flite -v $v \
	>/dev/audio