1

I've been using linux for 5 years now but this is new for me...

ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
python: src/hostapi/alsa/pa_linux_alsa.c:3636: PaAlsaStreamComponent_BeginPolling: Assertion `ret == self->nfds' failed.
Aborted (core dumped)

I can use my mic in the system like recording stuff with it and even talk in voice chat with no problem but when I try to run my speech recognition program its just fails like this...

| improve this question | | | | |
1

this seems to be a known issue with portaudio where ALSA (Linux's low-level sound API) returns an error in an unexpected place

this seems to be a known issue (e.g. see here) but the authors seem to have issues with the code, and it never got added to the package

I've just stumbled on the same issue and am trying again with code that will hopefully address their issues with the previous patches

not sure if/when it would show up in Ubuntu though

| improve this answer | | | | |
  • Not sure what to make of that bug report actually. Getting the same error on Ubuntu 18.04 (src/hostapi/alsa/pa_linux_alsa.c:3636: PaAlsaStreamComponent_BeginPolling: Assertion ret == self->nfds' failed`) – matanster May 11 at 9:55
  • 1
    I think an evolved version of this patch (or just one solving this issue for me) is here: stackoverflow.com/a/60824906/1509695. You also have some instructions for how to build and install it for Ubuntu there. – matanster May 12 at 12:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.