A library for audio and music analysis, feature extraction.
Project description
audioFlux
audioflux is a deep learning tool library for audio and music analysis, feature extraction. It supports dozens of
time-frequency analysis transformation methods and hundreds of corresponding time-domain and frequency-domain feature
combinations. It can be provided to deep learning networks for training, and is used to study various tasks in the audio
field such as Classification, Separation, Music Information Retrieval(MIR) and ASR etc.
New Features
- v0.1.8
- Add a variety of Pitch algorithms:
YIN,CEP,PEF,NCF,HPS,LHS,STFTandFFP. - Add
PitchShiftandTimeStretchalgorithms.
- Add a variety of Pitch algorithms:
Table of Contents
Overview
audioFlux is based on data stream design. It decouples each algorithm module in structure, and can quickly and
efficiently extract features of multiple dimensions. The following is the main feature architecture diagram.
You can use multiple dimensional feature combinations, select different deep learning networks training, study various tasks in the audio field such as Classification, Separation, MIR etc.
The main functions of audioFlux include transform, feature and mir modules.
1. Transform
In the time–frequency representation, main transform algorithm:
BFT- Based Fourier Transform, similar short-time Fourier transform.NSGT- Non-Stationary Gabor Transform.CWT- Continuous Wavelet Transform.PWT- Pseudo Wavelet Transform.
The above transform supports all the following frequency scale types:
- Linear - Short-time Fourier transform spectrogram.
- Linspace - Linspace-scale spectrogram.
- Mel - Mel-scale spectrogram.
- Bark - Bark-scale spectrogram.
- Erb - Erb-scale spectrogram.
- Octave - Octave-scale spectrogram.
- Log - Logarithmic-scale spectrogram.
The following transform are not supports multiple frequency scale types, only used as independent transform:
CQT- Constant-Q Transform.VQT- Variable-Q Transform.ST- S-Transform/Stockwell Transform.FST- Fast S-Transform.DWT- Discrete Wavelet Transform.WPT- Wave Packet Transform.SWT- Stationary Wavelet Transform.
Detailed transform function, description, and use view the documentation.
The synchrosqueezing or reassignment is a technique for sharpening a time-frequency representation, contains the following algorithms:
reassign- reassign transform forSTFT.synsq- reassign data useCWTdata.wsst- reassign transform forCWT.
2. Feature
The feature module contains the following algorithms:
spectral- Spectrum feature, supports all spectrum types.xxcc- Cepstrum coefficients, supports all spectrum types.deconv- Deconvolution for spectrum, supports all spectrum types.chroma- Chroma feature, only supportsCQTspectrum, Linear/Octave spectrum based onBFT.
3. MIR
The mir module contains the following algorithms:
pitch- YIN, STFT, etc algorithm.onset- Spectrum flux, novelty, etc algorithm.hpss- Median filtering, NMF algorithm.
Installation
The library is cross-platform and currently supports Linux, macOS, Windows, iOS and Android systems.
Python Package Install
To install the audioFlux package, Python >=3.6, using the released python package.
Using PyPI:
$ pip install audioflux
Using Anaconda:
$ conda install -c tanky25 -c conda-forge audioflux
Other Build
Quickstart
- Mel & MFCC
- CWT & Synchrosqueezing
- CQT & Chroma
- Different Wavelet Type
- Spectral Features
- Pitch Estimate
- Onset Detection
- Harmonic Percussive Source Separation
More example scripts are provided in the Documentation section.
Benchmark
server hardware:
- CPU: AMD Ryzen Threadripper 3970X 32-Core Processor
More detailed performance benchmark are provided in the Benchmark module.
Documentation
Documentation of the package can be found online:
Contributing
We are more than happy to collaborate and receive your contributions to audioFlux. If you want to contribute,
please fork the latest git repository and create a feature branch. Submitted requests should pass all continuous
integration tests.
You are also more than welcome to suggest any improvements, including proposals for need help, find a bug, have a feature request, ask a general question, new algorithms. Open an issue
Citing
If you want to cite audioFlux in a scholarly work, please use the following ways:
-
If you are using the library for your work, for the sake of reproducibility, please cite the version you used as indexed at Zenodo:
License
audioFlux project is available MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file audioflux-0.1.9-py3-none-any.whl.
File metadata
- Download URL: audioflux-0.1.9-py3-none-any.whl
- Upload date:
- Size: 70.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4b2d9d72dffb36a1d74e0894d3ea958c5195a7e05ebe779e972c97d593df3c2
|
|
| MD5 |
c0dfc7326d9517dbba44a382004eb764
|
|
| BLAKE2b-256 |
bea6f54fdbaaa8c5600afd8a47e4185178c688e8af55f5c455aa8f777aab8c36
|