Top > 日記 > 2015-10-01

**コールサインをAquesTalkでしゃべる [#m60b4922]
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
 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

#clear
#comment
#navi(日記)

リロード   新規 下位ページ作成 凍結解除 差分 コピー 名前変更   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS