AudioFeaturizer
AudioFeaturizer is a python package that uses librosa under the hood and extracts features from audio and returns it into a pandas dataframe. It also has a spectrogram generation function which generates spectrogram of the audio file path which is passed.
Installation
You can install the AudioFeaturizer from PyPI:
pip install AudioFeaturizer
The reader is supported on Python 3.7 and above.
How to Use
For Extracting Features from single file
>>> from AudioFeaturizer.audio_featurizer import *
>>> audio_process(r'D:\PYTHON_FILES\audio-ml\genres\classical\classical.00000.wav')
chroma_stft rmse spectral_centroid spectral_bandwidth ... mfcc17 mfcc18 mfcc19 mfcc20
0 0.252391 0.036255 1505.299012 1558.952849 ... -0.303796 1.778557 0.890328 -0.837884
[1 rows x 26 columns]
>>>
For Displaying Spectrogram
from AudioFeaturizer.audio_featurizer import *
spectrogram_plot(r'D:\PYTHON_FILES\audio-ml\genres\classical\classical.00000.wav')
For Processing a list of files
In[0]: from AudioFeaturizer.audio_featurizer import audio_process_list
audio_process_list([r"D:\PYTHON_FILES\audio classification\Man Out Of Town.wav",
r"D:\PYTHON_FILES\audio classification\Trumpet Tune.wav"])
Out[0]:
chroma_stft rmse spectral_centroid ... mfcc18 mfcc19 mfcc20
0 0.407153 0.201064 2507.575812 ... -2.347450 -5.120735 3.309853
1 0.276051 0.030480 1467.355071 ... -2.594764 -4.458375 1.309751
[2 rows x 26 columns]
Metadata
Release files for AudioFeaturizer 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 | |
|---|---|---|---|
| AudioFeaturizer-2.2.0.tar.gz | 19.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| AudioFeaturizer-2.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / AudioFeaturizer-2.2.0.tar.gz
| Download URL | AudioFeaturizer-2.2.0.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdb5a21d39ce0a7f91838658d6fb0b7c1072d5a9d1a1e61fa9fd77c4d3eac7c2
|
|
BLAKE2b-256 checksum How to use checksums |
7c35266c180c4e8ee9d89dcb583ab6a0ebaef6dadf2ba26a45d7b7e48d714457
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0.post20201103 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Release files / AudioFeaturizer-2.2.0-py3-none-any.whl
| Download URL | AudioFeaturizer-2.2.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db94c8458c1e77d42e9311b53d34aaf0f7f04181fb59a2c76c3bdb44d665b088
|
|
BLAKE2b-256 checksum How to use checksums |
3cf53fd57d5a621a22b9e03f91c22e956a88ceaf57cc13c14a9dcd1d41ca65b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0.post20201103 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|