コールサインをAquesTalkでしゃべる2015 8/1 からgoogle のTTS が機械的には使用できなくなったので、AquesTalkでしゃべらすことにした。Logの最後の一行をtemp2.txt とする。 13:49:49 JST:My: JH1BLT /1004 Your: U Rpt1: JJ1YEG C Rpt2: JJ1YEG G ---- /roo/tesay.sh ---- #!/bin/sh OMYCL="--" while : do wget -q -N server.address/temp2.txt -P /root if [ -f /root/temp2.txt ]; then FLAG=`cat /root/temp2.txt` fi if test "$FLAG" != "" ; then MYCL=`echo $FLAG | cut -d":" -f5 | cut -b2-9 | /root/henkan` NODE=`echo $FLAG | cut -d":" -f7 | cut -b2-9 | /root/henkan` # echo "$MYCL @ $NODE" if test "$MYCL" != "$OMYCL" ; then /home/pi/bin/atk "$MYCL" /home/pi/bin/atk "$NODE" OMYCL="$MYCL" rm -f /root/temp2.txt fi sleep 1 fi sleep 2 done --- /root/henkan --- sed -e ' s/1/ワン,/g s/2/テュー,/g s/3/スリー,/g s/4/フォー,/g s/5/ファイブ,/g s/6/シィックス,/g s/7/セブン,/g s/8/エイト,/g s/9/ナイン,/g s/0/ゼロ,/g' # chmod 755 /root/esay.sh # chmod 755 /root/henkan |