日記/2014-02-09
をテンプレートにして作成
ホーム
検索
最終更新
テスト
リンク
ヘルプ
新規
pukiwiki-official
pukiwiki-dev
ヘルプ
プラグインヘルプ
開始行:
***MyIPアドレスの読み上げ [#md0f7a4d]
Raspberry Pi(RasPi)にAquesTalkPiを組み込み、RasPiが起動し...
従来はOpenJTalkを利用していたが、AquesTalkPiが個人使用に...
+AquesTalkPiのInstall
http://www.a-quest.com/products/aquestalkpi.html を参考に...
使い易いように atk コマンドにする。
--- /home/pi/bin/atk ---
#!/bin/bash
cd /home/pi/aquestalkpi
echo "$1" | ./AquesTalkPi $2 -f - | aplay -D plughw:0,0...
そこでMyIPアドレスを読み上げるmipを作ってみる。
--- /home/pi/bin/mip ---
#!/bin/bash
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
/home/pi/bin/atk "IPアドレスは,$_IP"
fi
+rc.localに追加
/etc/rc.local に一行追加する。
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
/home/pi/bin/atk "IPアドレスは,$_IP" ← 追加
fi
exit 0
#clear
#comment()
#navi(日記)
終了行:
***MyIPアドレスの読み上げ [#md0f7a4d]
Raspberry Pi(RasPi)にAquesTalkPiを組み込み、RasPiが起動し...
従来はOpenJTalkを利用していたが、AquesTalkPiが個人使用に...
+AquesTalkPiのInstall
http://www.a-quest.com/products/aquestalkpi.html を参考に...
使い易いように atk コマンドにする。
--- /home/pi/bin/atk ---
#!/bin/bash
cd /home/pi/aquestalkpi
echo "$1" | ./AquesTalkPi $2 -f - | aplay -D plughw:0,0...
そこでMyIPアドレスを読み上げるmipを作ってみる。
--- /home/pi/bin/mip ---
#!/bin/bash
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
/home/pi/bin/atk "IPアドレスは,$_IP"
fi
+rc.localに追加
/etc/rc.local に一行追加する。
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
/home/pi/bin/atk "IPアドレスは,$_IP" ← 追加
fi
exit 0
#clear
#comment()
#navi(日記)
ページ名: