Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 1.9 KB

INSTALLATION.md

File metadata and controls

63 lines (41 loc) · 1.9 KB

Installation of Dejavu

So far Dejavu has only been tested on Unix systems.

  • pyaudio for grabbing audio from microphone
  • ffmpeg for converting audio files to .wav format
  • pydub, a Python ffmpeg wrapper
  • numpy for taking the FFT of audio signals
  • scipy, used in peak finding algorithms
  • matplotlib, used for spectrograms and plotting
  • MySQLdb for interfacing with MySQL databases

For installing ffmpeg on Mac OS X, I highly recommend this post.

Fedora 20+

Dependency installation on Fedora 20+

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

Max OS X

Dependency installation for Mac OS X

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.