LoginSignup
1
1

More than 5 years have passed since last update.

Raspberry Piでモノラル音声再生時のChannels count non available

Last updated at Posted at 2015-09-01

Raspberry Piでモノラルの音源を再生しようとした場合

たとえば、AquesTalkPiで音声を再生

$ ./AquesTalkPi "はろー" | aplay
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
aplay: set_params:xxxx: Channels count non available

(xxxxには数字)

モノラルの音源を再生した場合に出るエラーのようだ。

対処法

以下のように設定ファイルを編集することで再生可能。

~/.asound.rc
$ vim ~/.asoundrc
pcm.!default {
    type hw
    card 0
}

ctl.!default {
    type hw           
    card 0
}

参考

http://bonkurabombom.blog.so-net.ne.jp/2014-06-14
http://askubuntu.com/questions/587352/no-sound-with-alsa-and-intel-audio-device

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1