ALSA errors on Raspberry Pi 3 using image v1.5

606 views
Skip to first unread message

Sean Howland

unread,
Feb 12, 2017, 6:09:06 PM2/12/17
to Jasper Support Forum
ALSA lib pcm.c:2239: (snd_pc_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239: (snd_pc_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239: (snd_pc_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2239: (snd_pc_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239: (snd_pc_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239: (snd_pc_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239: (snd_pc_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239: (snd_pc_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239: (snd_pc_open_noupdate) Unknown PCM cards.pcm.phoneline
Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2719
Expression 'PaAlsaStream_Configure ( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843
Traceback (most recent call last):
  File "/home/pi/jasper-client/jasper.py", line 151, in <module> app.run()
  File "/home/pi/jasper-client/jasper.py", line 121, in run conversation.handleForever()
  File "/home/pi/jasper-client/client/conversation.py", line 31, in handleForever threshold, transcribed = self.mic.passiveListen(self.persona)
  File "/home/pi/jasper-client/client/mic.py", line 110, in passiveListen frames_per_buffer=CHUNK
  File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 750, in open stream = Stream(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 441, in __init__ self._stream = pa.open(**arguments)
IOError: [Errno -9997] Invalid sample rate

I'm using a Raspberry Pi 3 with a CM-Headphones chipset USB sound card, a TRRS headset w/ microphone for audio input, and a separate TRS headset for audio output. It's connected over ethernet to the network. Image 1.5, using branch master.

How can I fix this problem?

Lee Melbourne

unread,
Feb 12, 2017, 6:45:23 PM2/12/17
to Jasper Support Forum
 What mic setup (hardware) are you using? It is possible it doesnt support the sample rate that is hard coded into Jasper.

Sean Howland

unread,
Feb 12, 2017, 11:33:48 PM2/12/17
to Jasper Support Forum
It's a CM-Headphone chipset using a TRRS earbud+microphone setup for audio input (using the mic on the earbuds) and a separate headset/speaker from the same audio card.

Matthew Curry

unread,
Feb 27, 2017, 8:35:01 PM2/27/17
to Jasper Support Forum
type "aplay -l" and see what number it shows up as, and then you need to update it in /usr/share/alsa/alsa.conf and reboot.  Then ensure its setup right in alsamixer.  Is it USB?

Reply all
Reply to author
Forward
0 new messages