Coder Social home page Coder Social logo

sandy4321 / pyaudioanalysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tyiannak/pyaudioanalysis

0.0 2.0 0.0 55.82 MB

Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications

License: Apache License 2.0

Python 95.25% Shell 0.20% MATLAB 1.00% HTML 2.32% CSS 1.23%

pyaudioanalysis's Introduction

pyAudioAnalysis: A Python Audio Analysis Library

pyAudioAnalysis is a Python library covering a wide range of audio analysis tasks, including: feature extraction, classification, segmentation and visualization. The user can perform the following tasks:

  • Extract a wide range of audio features and representations (e.g. spectrogram, chromagram)
  • Train, parameter tune and evaluate segment-based classifiers
  • Classify unknown samples
  • Detect audio events and exclude silence periods from long recordings
  • Perform supervised segmentation (i.e. apply a clasification model on fix-sized segments)
  • Perform unsupervised segmentation (e.g. speaker diarization)
  • Extract audio thumbnails
  • Train and use audio regression models (example application: emotion recognition)
  • Apply dimensionality reduction techniques to visualize audio data and content similarities

[(follow this link for the complete documentation)] (https://github.com/tyiannak/pyAudioAnalysis/wiki)

pyAudioAnalysis can serve as an introduction to Audio Analysis in Python, for Matlab-related audio analysis material check this book.

pyAudioAnalysis provides easy-to-call wrappers to execute audio analysis tasks. For example, to train a classifier segments, given a set of WAV files stored in folders, each folder representing a different class, the following code needs to be executed:

from pyAudioAnalysis import audioTrainTest as aT
aT.featureAndTrain(["classifierData/music","classifierData/speech"], 1.0, 1.0, aT.shortTermWindow, aT.shortTermStep, "svm", "svmSMtemp", False)

Then, the resulting classification model can be used to classify an unknown audio WAV file:

aT.fileClassification("data/doremi.wav", "svmSMtemp","svm")
Result:
(0.0, array([ 0.90156761,  0.09843239]), ['music', 'speech'])

In addition, command-line support is provided for all functionalities. E.g. the following command needs to be executed to extract the spectrogram of an audio signal stored in a WAV file:

python audioAnalysis.py fileSpectrogram -i data/doremi.wav

[Installing instructions and a complete documentation is provided in the wiki] (https://github.com/tyiannak/pyAudioAnalysis/wiki)

Author: [Theodoros Giannakopoulos]

pyaudioanalysis's People

Contributors

tyiannak avatar

Watchers

James Cloos avatar  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.