I have tried several days to use microphone on my ubuntu 14.04 with PyAudio. Actually I want to use 'Speech Recognition' package in the github.
I find it uses pyaudio internal, and It is nightmare on ubuntu 14.04. It shows the following error message and cannot recognize my voice from microphone:
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
I find several similar posts on the websites, and there is no solution about this. I cannot record my voice through microphone, it just stucks there. Anyone run it successfully on ubuntu 14.04 ? (PyAudio to record the voice or Speech Recognition)