Raspberry Pi | aplayコマンドで音声の冒頭が再生されない問題→アナログスピーカーで解決!
![このエントリーをはてなブックマークに追加](https://b.st-hatena.com/images/entry-button/button-only@2x.png)
![Share on Facebook facebook](http://i0.wp.com/www.tapun.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/64x64/facebook.png?resize=32%2C32)
![Share on Twitter twitter](http://i0.wp.com/www.tapun.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/64x64/twitter.png?resize=32%2C32)
![Share on Google+ google_plus](http://i1.wp.com/www.tapun.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/64x64/google_plus.png?resize=32%2C32)
![Share on Reddit reddit](http://i1.wp.com/www.tapun.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/64x64/reddit.png?resize=32%2C32)
![Pin it with Pinterest pinterest](http://i2.wp.com/www.tapun.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/64x64/pinterest.png?resize=32%2C32)
![Share on Linkedin linkedin](http://i2.wp.com/www.tapun.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/64x64/linkedin.png?resize=32%2C32)
![Share by email mail](http://i2.wp.com/www.tapun.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/64x64/mail.png?resize=32%2C32)
こんばんは、tapunです。
これは我が家のRaspberry Piです:)
前回、Raspberry Piに喋ってもらいましたが、どうも冒頭の音声が再生されない問題がありました。
入力文字:こんにちは、わたしはラズベリーパイです。
再生音声:・・・ちは、わたしはラズベリーパイです。
何度試しても、最初の3文字が再生されません。
スクリプトにsleepを入れたり色々試したのですが一向に直らずに途方にくれていたのですが、夫の一言で解決されました。
「それ、HDMIだからデジタル変換に時間がかかってるんじゃないの?」
前回のポストの中で、音声出力をHDMI優先にしていたのですが、ためしにアナログ優先に変えてみました。
$ amixer cset numid=3 1
※あらかじめ、/boot/config.txtの “hdmi_drive=2″をアンコメントしておきましょう!
そしてjsayコマンドを実行したら・・・
$ jsay こんにちは、わたしはラズベリーパイです
Raspi 「こんにちは、わたしはラズベリーパイです」
ちゃんとしゃべったー!!! 😀
HDMI接続で音が遅くなるという事例は、Raspberry Pi関連の情報は見つけられなかったのですが、アンプをテレビにつないだときに音が遅れるなどの口コミがあったので、何かテレビと機材の相性とかがあるのですかね~・・
音量等もリモコンから操作でき快適なのですが、画と音が微妙にズレています。
音の方が若干遅いように感じます。
みなさんはどうでしょうか?
ズレていないですか?引用:http://bbs.kakaku.com/bbs/K0000487390/SortID=17574380/
とにかく、急いでRaspberry Pi 用の小型のスピーカーを買おうと思いました!
それではおやすみなさい!
素晴らしい。その通りでした。目から鱗です。ありがとうございました。
お役に立てたようでよかったです!