pyAudioAnalysis: A Python Library for Audio Feature Extraction and Analysis
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
pyAudioAnalysis is an open-source Python library designed for a wide range of audio analysis tasks. It provides robust functionalities for feature extraction, classification, and segmentation of audio data, making it a valuable tool for researchers and developers. This library simplifies complex audio signal processing and machine learning applications.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
pyAudioAnalysis is a comprehensive Python library dedicated to various audio analysis tasks. It empowers users to extract diverse audio features and representations, such as MFCCs, spectrograms, and chromagrams. Beyond feature extraction, the library facilitates the training, parameter tuning, and evaluation of audio segment classifiers, enabling the classification of unknown sounds and the detection of specific audio events. It also supports both supervised and unsupervised segmentation, including speaker diarization, and allows for the training and application of audio regression models, with examples like emotion recognition. Furthermore, pyAudioAnalysis includes tools for dimensionality reduction, aiding in the visualization of audio data and content similarities.
Installation
Getting started with pyAudioAnalysis is straightforward. Follow these steps to install the library:
- Clone the repository:
git clone https://github.com/tyiannak/pyAudioAnalysis.git - Install dependencies: Navigate into the cloned directory and install the required packages.
cd pyAudioAnalysis pip install -r ./requirements.txt - Install the library:
pip install -e .
Examples
pyAudioAnalysis offers easy-to-use wrappers for executing audio analysis tasks, alongside command-line support for all its functionalities.
Audio Classification Example
This Python code snippet demonstrates how to train an audio segment classifier using WAV files organized into folders (each representing a different class), and then use the trained classifier to categorize an unknown audio WAV file.
from pyAudioAnalysis import audioTrainTest as aT
aT.extract_features_and_train(["classifierData/music","classifierData/speech"], 1.0, 1.0, aT.shortTermWindow, aT.shortTermStep, "svm", "svmSMtemp", False)
aT.file_classification("data/doremi.wav", "svmSMtemp","svm")
The result of the classification would be similar to:
(0.0, array([ 0.90156761, 0.09843239]), ['music', 'speech'])
Command-Line Usage
For command-line enthusiasts, pyAudioAnalysis provides direct access to its features. For instance, to extract the spectrogram of an audio signal stored in a WAV file, you can use:
python audioAnalysis.py fileSpectrogram -i data/doremi.wav
For more detailed examples and comprehensive tutorials, refer to the official pyAudioAnalysis Wiki.
Why Use pyAudioAnalysis
pyAudioAnalysis stands out as a robust choice for audio analysis due to several key advantages:
- Comprehensive Functionality: It covers a broad spectrum of audio analysis tasks, from basic feature extraction to advanced machine learning applications like classification, segmentation, and regression, all within a single library.
- Ease of Use: The library is designed with user-friendliness in mind, offering simple Python wrappers and extensive command-line support, making it accessible to both beginners and experienced developers.
- Machine Learning Integration: It seamlessly integrates various machine learning models, allowing users to train, evaluate, and deploy classifiers and regression models for diverse audio-related problems.
- Active Development and Rich Resources: The project is actively maintained, as evidenced by recent news and updates. It also provides a wealth of documentation, including a detailed wiki and several insightful articles, to guide users.
- Open-Source and Extensible: Being an open-source project, pyAudioAnalysis is freely available, encouraging community contributions and allowing for customization and extension to suit specific research or application needs.
Links
Explore pyAudioAnalysis further through these resources:
- GitHub Repository: https://github.com/tyiannak/pyAudioAnalysis
- Official Wiki: https://github.com/tyiannak/pyAudioAnalysis/wiki
- Audio Handling Basics Article: https://hackernoon.com/audio-handling-basics-how-to-process-audio-files-using-python-cli-jo283u3y
- Intro to Audio Analysis Article: https://hackernoon.com/intro-to-audio-analysis-recognizing-sounds-using-machine-learning-qy2r3ufl
- Music Mood Lighting Use Case: https://hackernoon.com/how-to-use-machine-learning-to-color-your-lighting-based-on-music-mood-bi163u8l
- Research Publication: http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0144610
Related repositories
Similar repositories that may be relevant next.

LibrePods: Liberate Your AirPods on Android and Linux
June 27, 2026
LibrePods is an open-source project that brings Apple AirPods features to non-Apple devices. It implements the proprietary protocol, allowing users to control listening modes, monitor battery, and utilize ear detection on Android and Linux. This project aims to free AirPods from the Apple ecosystem, enhancing their versatility.

VoxCPM: Tokenizer-Free TTS for Multilingual Speech, Voice Design, and Cloning
June 1, 2026
VoxCPM2 is a groundbreaking tokenizer-free Text-to-Speech system, offering highly natural and expressive synthesis across 30 languages. It enables creative voice design from natural language descriptions and provides advanced controllable voice cloning capabilities. With its 2B parameter model, VoxCPM2 delivers 48kHz studio-quality audio, making it a powerful tool for diverse speech generation needs.

MOSS-TTS Family: Open-Source High-Fidelity Speech and Sound Generation
May 31, 2026
The MOSS-TTS Family offers an open-source suite of models for high-fidelity, highly expressive speech and sound generation. Designed for complex real-world scenarios, it covers stable long-form speech, multi-speaker dialogue, voice design, environmental sound effects, and real-time streaming TTS. This comprehensive family of models from MOSI.AI and OpenMOSS team provides robust solutions for diverse audio generation needs.

Riffusion (hobby): Real-time Music Generation with Stable Diffusion
November 22, 2025
Riffusion (hobby) is an innovative Python library that applies stable diffusion models to generate music and audio in real-time. This project enables creative exploration of soundscapes through spectrogram image processing, offering tools for command-line use, an interactive Streamlit app, and a Flask API server. While no longer actively maintained, it remains a significant open-source contribution to AI-driven audio synthesis.
Source repository
Open the original repository on GitHub.
10 counted GitHub visits