コールサインをAquesTalkで

2015 8/1 からgoogle のTTS が機械的には使用できなくなったので、AquesTalkでしゃべらすことにした。

---- /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
--- /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


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