So, I installed pyaudio from the python-pyaudio package using apt-get , now when I import and call as follows:
Python 2.7.3 (default, Sep 26 2012, 21:53:58) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pyaudio >>> p= pyaudio.PyAudio() ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started
He spits out these error messages. After some research, I found this question:
PyAudio works, but every time it displays error messages
And the answers mention that these are just warnings
But for me, the sound actually does not work and interrupts the sound in my system, forcing the sound applet to show all spaces and work without sound.
Before:

After:

Is this a problem that I can fix?
python ubuntu pulseaudio pyaudio
Amith KK Mar 03 '13 at 4:02 2013-03-03 04:02
source share