blob: 6d6c924b9f0efcbbf3772253decd389d48be1653 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
text=$(echo $* | sed 's/ /+/g')
voice="klara"
base_url="http://192.20.225.36"
TMPFILE=`mktemp`
trap "rm $TMPFILE" TERM INT EXIT
wget $base_url$( curl -Ss -A "Mozilla" -d "voice=$voice" -d "txt=$text" -d "speakButton=SPEAK" $base_url/tts/cgi-bin/nph-nvdemo |grep HREF|sed 's/.*\(".*"\).*/\1/' |sed -e 's/"//g') -O $TMPFILE
aplay $TMPFILE
rm $TMPFILE
|