audiofeatures
A Python library for audio preprocessing and handcrafted feature extraction for machine learning, deep learning, and music information retrieval (MIR).
audiofeatures extracts temporal, spectral, cepstral, tonal, pitch, and rhythm features from audio files and returns a Pandas DataFrame.
Features
Audio Preprocessing
- Mono conversion
- Resampling
- Normalization
- Silence removal
- Audio cropping
Temporal Features
- RMS Energy
- Zero Crossing Rate
- Energy
- Peak Amplitude
- Crest Factor
- Dynamic Range
- Energy Variability
- Amplitude Variability
Spectral Features
- Spectral Centroid
- Spectral Bandwidth
- Spectral Rolloff
- Spectral Contrast
Cepstral Features
- MFCC
- Delta MFCC
- Delta-Delta MFCC
Tonal Features
- Chroma
- Tonnetz
Pitch Features
- Pitch Mean
- Pitch Standard Deviation
- Pitch Minimum
- Pitch Maximum
Rhythm Features
- Onset Strength Mean
- Onset Strength Standard Deviation
- Onset Strength Maximum
Installation
pip install audiofeatures
Quick Start
from audiofeatures import extract_features
df = extract_features("song.wav")
print(df.head())
Default Parameters
| Parameter | Default |
|---|---|
| Sample Rate | 22050 Hz |
| Window Size | 0.5 seconds |
Returned Features
- 185 handcrafted audio features
- Window-based extraction
- Pandas DataFrame output
Requirements
- Python 3.9+
- NumPy
- Pandas
- Librosa
- SoundFile
License
MIT License
Author
Dhyan Sudheer
Metadata
Release files for audiofeatures 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| audiofeatures-2.2.0.tar.gz | 11.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| audiofeatures-2.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.6 kB
Release files / audiofeatures-2.2.0.tar.gz
| Download URL | audiofeatures-2.2.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e4848779d454ad68ac74fc969bf01332624b6109f758084449482f5030c2606
|
|
BLAKE2b-256 checksum How to use checksums |
9eadd2941cccf76526b8d77b88383f90df723862b259e29fa237aa9f42ca51b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.5
|
Release files / audiofeatures-2.2.0-py3-none-any.whl
| Download URL | audiofeatures-2.2.0-py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
032efb0d369f7be961bd14f842a25a2e6a9ee47937e346c8560c1d15c45cf73c
|
|
BLAKE2b-256 checksum How to use checksums |
c30563120a4b3e30ec412387d93f4f2732a8d8b69ec2713e28c45375d9583195
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.5
|