I\'m using PyAudio under the Enthought Python Distribution (Python 2.6.6) in Ubuntu 10.10 x64.
>>> import pyaudio
>>> pa = pyaudio.PyAudio(
Check this https://github.com/shichao-an/soundmeter/issues/7
All you have to do is
install ALSA : sudo apt-get install libasound-dev
then build portaudio (this version pa_stable_v190600_20161030.tgz)
http://www.portaudio.com/download.html
then Get root privileges (sudo su root under Ubuntu where plain su root does not work.)
Place the portaudio archive in /usr/src and unpack it with tar xvfz pa_snapshot.tgz This will generate the directory /usr/src/portaudio.
Descend into this directory and execute these commands:
./configure
make
make install
ldconfig
The linrad configure script has to be run after the successful installation of portaudio to make Linrad aware of the fact that portaudio is available.
Make sure you get ALSA as yes in the ./configure file
Target ...................... x86_64-unknown-linux-gnu
C++ bindings ................ no
Debug output ................ no
ALSA ........................ yes
ASIHPI ...................... no
OSS ......................... yes
JACK ........................ no "
Install the latest version of pyaudio
(PyAudio-0.2.11.tar.gz)