Top > 日記 > 2015-10-01

コールサインを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

URL B I U SIZE Black Maroon Green Olive Navy Purple Teal Gray Silver Red Lime Yellow Blue Fuchsia Aqua White


새로고침   새페이지 Lower page making 잠금해제 비교 복사 이름변경   대문 목록 검색 갱신내역 백업 리퍼러   도움말   갱신내역의 RSS
Last-modified: Thu, 01 Oct 2015 21:04:53 KST (3557d)