pAura is a Python tool for recording audio information and analyzing its content in an online and realtime manner.
- Install pyAudioAnalysis.
- Install alsaaudio for python:
sudo apt-get install python-alsaaudio
- Install opencv for python:
sudo apt-get install python-opencv
- Clone the source of this library:
git clone https://github.com/tyiannak/paura.git
The following command records audio data using blocks of 0.3sec. For each block, the spectrogram and chromagram are plotted, along with the raw samples (waveform). Also, a simple activity detection is performed and each non-silent segment is stored in a WAV file. Successive blocks are merged to a single WAV file.
python paura.py recordAndAnalyze --blocksize 0.3 --spectrogram --chromagram --recordactivity
The sound detection method is very simple and requires a short "silence" period at the begining of the recording (10 blocks, 3 seconds for the above example). Arguments --spectrogram, --chromagram and --recordactivity are optional
Online classification and clustering
[Theodoros Giannakopoulos] (http://www.di.uoa.gr/~tyiannak), Postdoc researcher at NCSR Demokritos, Athens, Greece