Trying to install pyaudio with instructions per here:
$ git clone http://people.csail.mit.edu/hubert/git/pyaudio.git
$ cd pyaudio
$ sudo python setup.py inst
try this command pip install PyAudio
Sorry about the inappropriate answer last time, I will post the solution of the question. It might be helpful for Ubuntu distributions.
First we need to install portaudio modules: sudo apt-get install libasound-dev
Download the portaudio archive from: http://portaudio.com/download.html
Unzip the archive: tar -zxvf [portaudio.tgz]
Enter the directory, then run: ./configure && make
Install: sudo make install
And finally: sudo pip install pyaudio
Check the version of pyaudio, it should be 0.2.9
For Windows :
Install using pip:
python -m pip install pyaudio
if pip is not already bundled with your installation of Python, get it here.
For Mac OS X :
Use Homebrew to install the prerequisite portaudio library, then install PyAudio using pip:
brew install portaudio
pip install pyaudio
pip will download the PyAudio
source and build it for your version of Python.
For Debian/Ubuntu :
Use the package manager to install PyAudio
:
sudo apt-get install python-pyaudio python3-pyaudio
If the latest version of PyAudio is not available, install it using pip:
pip install pyaudio
For better isolation from system packages, consider installing PyAudio in a virtual environment
PyAudio Source :
Source is available for download at the Python Package Index (PyPI): here!
Or clone the git repository:
git clone https://people.csail.mit.edu/hubert/git/pyaudio.git
credits: PyAudio and GitHub:Speech_Recognition