So far Dejavu has only been tested on Unix systems.
pyaudio
for grabbing audio from microphoneffmpeg
for converting audio files to .wav formatpydub
, a Pythonffmpeg
wrappernumpy
for taking the FFT of audio signalsscipy
, used in peak finding algorithmsmatplotlib
, used for spectrograms and plottingMySQLdb
for interfacing with MySQL databases
For installing ffmpeg
on Mac OS X, I highly recommend this post.
Install the dependencies:
sudo yum install numpy scipy python-matplotlib ffmpeg portaudio-devel
pip install PyAudio
pip install pydub
Now setup virtualenv (howto?):
pip install virtualenv
virtualenv --system-site-packages env_with_system
Install from PyPI:
source env_with_system/bin/activate
pip install PyDejavu
You can also install the latest code from GitHub:
source env_with_system/bin/activate
pip install https://github.com/worldveil/dejavu/zipball/master
Tested on OS X Mavericks. An option is to install Homebrew and do the following:
brew install portaudio
brew install ffmpeg
sudo easy_install pyaudio
sudo easy_install pydub
sudo easy_install numpy
sudo easy_install scipy
sudo easy_install matplotlib
sudo easy_install pip
sudo pip install MySQL-python
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
However installing portaudio
and/or ffmpeg
from source is also doable.