The audio package exists to simplify the installation of the following packages:
audio.bitstream,audio.coders,audio.filters,audio.fourier,audio.frames,audio.index,audio.io,audio.lp,audio.quantizers,audio.shrink,audio.wave.
The easy way to install it is to use the pip package manager:
$ sudo pip install --upgrade audio
Use the same command to update all packages to their latest stable release.
Follow the instructions below if pip is not available on your system.
Most of the dependencies of these packages are automatically managed, but some dependencies still need to be manually installed beforehand:
-
The
pippackage installer. Installation instructions for all platforms.On Ubuntu:
$ sudo apt-get install python-pip -
NumPy -- Numerical Python. Unless you know what you are doing, use existing binary packages.
On Ubuntu:
$ sudo apt-get install python-numpy -
PyAudio -- Python bindings for PortAudio. Refer to PyAudio for general installation instructions.
On Ubuntu:
$ sudo apt-get install python-pyaudio -
NLTK and TIMIT -- Natural Language Toolkit & Acoustic-Phonetic Speech Corpus
Detailled NLTK installation instructions are available here. TIMIT is an extra corpus that be installed separately, see here.
On Ubuntu, install NLTK with:
$ sudo apt-get install python-nltkand then the TIMIT corpus with:
$ python -c "import nltk; nltk.download('timit')"