A jupyter notebook for a multiclass audio segmentation tutorial and demo.
Whe have an audio stream and we want to automatically figure out, given some training data, which kinds of sound envents it contains and when each of these events occurs (see next figure).
You can read a static version of this notebook here.
-
Install Anaconda
-
Clone this repository and run Jupyter:
git clone https://github.com/amsehili/audio-segmentation-by-classification-tutorial.git cd audio-segmentation-by-classification-tutorial conda env create -f linux-64-environment.yml source activate audio jupyter notebook
git clone https://github.com/amsehili/audio-segmentation-by-classification-tutorial.git
cd audio-segmentation-by-classification-tutorial
pip install virtualenv
virtualenv audio
source audio/bin/activate
The following packages are required:
To install them all type:
pip install -r requirements.txt
If you have some of the previous packages already installed, you can install missing one by typing:
pip install package_name
Optionally, you can install pyaudio to play audio segments within the notebook. On Ubuntu type the following command to install the library:
$ sudo apt-get install python-pyaudio portaudio19-dev
Please refer to pyaudio web page for installation instructions on others platforms.
jupyter notebook