またまたRaspberry Piネタです。 普段ラズパイは無線LAN子機だけつないでbotスクリプトを走らせていますが、無線LAN子機が発熱して度々ネットワークから切断され、SSHでログインできない現象が発生していました。 単に接続が切れているのか、ハングアップしているのか区別できるようにしたかったところ、AquesTalk Piという音声合成ソフトを見かけたので、これを使ってラズパイに時刻を喋らせることにしました。 スピーカは¥100ショップで売ってるようなパッシブスピーカ(アンプ機能の無いスピーカ)を使用しました。 AquesTalk Piについてはこちらから。 Python2.7で書いてみました。2~10分のランダム間隔で時刻を喋ります。 import time import os import random def time2strings(): talk10 = [u'', u'