title: PyAudio cannot use microphone on Ubuntu 14.04 with 'unable to open slave'
body: <p>I have tried several days to use microphone on my ubuntu 14.04 with PyAudio. Actually I want to use '<a href="https://github.com/Uberi/speech_recognition" rel="noreferrer">Speech Recognition</a>' package in the github.</p>
  
  <p>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:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>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 <a href="https://github.com/Uberi/speech_recognition" rel="noreferrer">Speech Recognition</a>)</p>