!Disclaimer: Linux commands.
How do you install AudioLib? pip install AudioLib, simple. OR So, I thought!
Building wheel for pyaudio (setup.py) ... error ERROR: Command errored out with exit status 1: ERROR: Failed building wheel for pyaudio Failed to build pyaudio
I was met with these errors. If you were also met with similar errors you are at the right place. Let's just get right into it.
Before you install AudioLib, you need to install PyAudio. Basically this article is just how to install PyAudio + pip install AudioLib.
You need to install portaudio modules:
sudo apt-get install libasound-dev
Download the portaudio archive from: http://files.portaudio.com/download.html The good folks at PortAudio has made it easy for us, you just download the one with "You probably want this!!" label.
Unzip it. Remember the directory.
On the terminal enter the directory using cd. If you have unziped the archive in the Downloads folder and if you have not changed the default name of the archive or the folder then use the below commands.
cd Downloads/ cd pa_stable_v190700_20210406/ cd portaudio/
./configure && make
sudo make install
Tada... Install PyAudio
sudo pip install pyaudio
Now, Install AudioLib
sudo pip install AudioLib