Skip to main content

Extract MFCC, spectral, and pitch features from audio files

Project description

AudioFeatures

AudioFeatures is a lightweight Python library for extracting features from .wav audio files using librosa. It can extract MFCCs, spectral features, and pitch for machine learning or audio analysis tasks.


Features

  • Extract MFCC mean and standard deviation (13 coefficients)
  • Compute Zero Crossing Rate (ZCR)
  • Compute RMS energy
  • Compute Spectral features: centroid, bandwidth, rolloff, contrast
  • Compute pitch mean and standard deviation
  • Returns results as a pandas DataFrame

Installation

pip install Audiofeatures

Usage

Extract audio features from a single file

from Audiofeatures import extract_audio_features

df = extract_audio_features("sample.wav")
print(df.head())

Example Output

The extract_audio_features() function returns a pandas DataFrame with columns like:

mfcc_mean_1, mfcc_mean_2, ..., mfcc_std_13,
zcr, rms, spec_centroid, spec_bandwidth, spec_rolloff, spec_contrast,
pitch_mean, pitch_std

Dependencies

  • librosa
  • numpy
  • pandas

License

MIT License


Author

Dhyan Sudheer

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

audiofeatures-0.1.5.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audiofeatures-0.1.5-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file audiofeatures-0.1.5.tar.gz.

File metadata

  • Download URL: audiofeatures-0.1.5.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for audiofeatures-0.1.5.tar.gz
Algorithm Hash digest
SHA256 584aaf74f961f992d32f7bd941c5faf258145b762d03445178e398d5543ab01b
MD5 6427e3e2ff2929c7d12834244b6d3dea
BLAKE2b-256 dce820e5bf01dd457020c54c758d41ff4e56691ca6615e00249386a63ba591f4

See more details on using hashes here.

File details

Details for the file audiofeatures-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: audiofeatures-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for audiofeatures-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 95647d1a2ab8d550beebeb1647e18f0f76131a477e718af2e54bef672ac615ed
MD5 134cfc413bb68ce04046e511c83703bb
BLAKE2b-256 9ed79a302469978644614706b58d250bb679943a7fa7b61659bf10cf1b043404

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page