Simplified Python Audio-Features Extraction.
Project description
Spafe
Simplified Python Audio Features Extraction
Table of Contents
Structure
spafe aims to simplify features extractions from mono audio files. Spafe includes various computations related to filter banks, spectrograms, frequencies and cepstral features . The library has the following structure:
Filter banks
- Bark filter banks
- Gammatone filter banks
- Linear filter banks
- Mel filter banks
Spectrograms
- Bark spectrogram
- CQT spectrogram
- Erb spectrogram
- Mel spectrogram
Features
- Bark Frequency Cepstral Coefficients (BFCCs)
- Constant Q-transform Cepstral Coefficients (CQCCs)
- Gammatone Frequency Cepstral Coefficients (GFCCs)
- Linear Frequency Cepstral Coefficients (LFCCs)
- Linear Prediction Components (LPCs)
- Mel Frequency Cepstral Coefficients (MFCCs)
- Inverse Mel Frequency Cepstral Coefficients (IMFCCs)
- Magnitude based Spectral Root Cepstral Coefficients (MSRCCs)
- Normalized Gammachirp Cepstral Coefficients (NGCCs)
- Power-Normalized Cepstral Coefficients (PNCCs)
- Phase based Spectral Root Cepstral Coefficients (PSRCCs)
- Perceptual Linear Prediction Coefficents (PLPs)
- Rasta Perceptual Linear Prediction Coefficents (RPLPs)
The theory behind features computed using spafe can be summmarized in the following graph:
Frequencies
- Dominant frequencies
- Fundamental frequencies
Installation
Dependencies
spafe requires:
if you want to use the visualization module/ functions of spafe, you will need to install:
- Matplotlib (>= 3.5.2)
Installation guide
Once you have the Dependencies installed, use one of the following install options.
Install from PyPI
- To freshly install spafe:
pip install spafe
- To update an existing installation:
pip install -U spafe
Install from Anaconda
- Spafe is also available on anaconda:
conda install spafe
Install from source
- You can build spafe from source, by following:
git clone git@github.com:SuperKogito/spafe.git
cd spafe
python setup.py install
How to use
Various examples on how to use spafe are present in the documentation https://superkogito.github.io/spafe/dev/.
<!> Please make sure you are referring to the correct documentation version.
Contributing
Contributions are welcome and encouraged. To learn more about how to contribute to spafe please refer to the Contributing guidelines
Citing
-
If you want to cite spafe as a software used in your work, please cite the version used as indexed at Zenodo:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file spafe-0.2.0.tar.gz
.
File metadata
- Download URL: spafe-0.2.0.tar.gz
- Upload date:
- Size: 48.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4824d4702f109f178a3af95f1be50ab26684a19eedd2fb6d3a943b7ea6c3b188 |
|
MD5 | ea713fd130474525e5ff578999901df1 |
|
BLAKE2b-256 | 932379ceee53e9b75dac5def896406f2e5cf8c29520c3469abb28a15fbf2372b |
Provenance
File details
Details for the file spafe-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: spafe-0.2.0-py3-none-any.whl
- Upload date:
- Size: 90.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9834e02bcf93c5ddb3a7153489746f948c8ace52ed2768edfa280c085472a570 |
|
MD5 | 5828b5b42ef97bfc02d603c257d25f81 |
|
BLAKE2b-256 | a2fe0458e49f3a96bfb35acb913515fd1fdfe6d4d1a2b2fa522a6eb65525ae12 |