Coder Social home page Coder Social logo

paura's Introduction

pAura: Python Audio Recorder and Analyzer

General

pAura is a Python tool for recording audio information and analyzing its content in an online and realtime manner.

paura.py uses alsaaudio to capture sound (to be used under Linux environments), while paura2.py uses pySound (based on portaudio), so it can both be used in Linux and MacOs environments.

Installation (for paura.py and Linux)

  • 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

Installation (for paura2.py and MacOs)

  • Install pyAudioAnalysis.
  • Install portaudio: brew install portaudio
  • Install pysound and opencv for python: pip install pyaudio opencv-python
  • Clone the source of this library:
git clone https://github.com/tyiannak/paura.git

Command line execution

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
python paura2.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

Ongoing work

Online classification and clustering

Author

[Theodoros Giannakopoulos] (http://www.di.uoa.gr/~tyiannak), Postdoc researcher at NCSR Demokritos, Athens, Greece

paura's People

Contributors

tyiannak avatar

Watchers

James Cloos avatar Cristina Gomez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.