entropy-audio-embeddings: audio mapping to low dimensional metric space
Project description
Audio entropy embeddings
entropy_audio_embeddings provides the tools to get a low dimensional metric space mapping for audio files. The interface gives a set of tools to input an mp3 file and as output a numpy 2d matrix is generated. The embeddings are robust for time shifting and noise evironments also it discrmineates between versions e.g. music recordings. With the low dimension representation task like audio retrieval search by excerpt are solved.
Installation
librosa>=0.11.0 is required. pydub>=0.25.1 is required. numpy>= 2.4.2 is required.
$ pip install entropy-audio-embeddings
Usage
$ python3 example.py
For example:
from entropy_audio_embeddings import multiband_entropy_from_mp3
from pathlib import Path
print("Getting embeddings from mp3 file")
entropies = multiband_entropy_from_mp3(filename, sr=44100, n_fft=2048, window_size=2048, hop_length=2048, shingle_size=10, shingle_step=2)
print("Done getting embeddings from mp3 file")
Results
------ Entropies ------ numpy array: shape: 24, t t = time
Cite
[1] Camarena-Ibarrola, A., Chávez, E., & Tellez, E. S. (2009, November). Robust radio broadcast monitoring using a multi-band spectral entropy signature. In Iberoamerican Congress on Pattern Recognition (pp. 587-594). Berlin, Heidelberg: Springer Berlin Heidelberg.
[2] Camarena-Ibarrola, A., Luque, F., & Chavez, E. (2017, November). Speaker identification through spectral entropy analysis. In 2017 IEEE international autumn meeting on power, electronics and computing (ROPEC) (pp. 1-6). IEEE.
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 Distribution
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 entropy_audio_embeddings-0.1.0.tar.gz.
File metadata
- Download URL: entropy_audio_embeddings-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bc1cee64f6ebc0b00e5bd8ec38b696c4547bb20af9188463ae28938b64f3301
|
|
| MD5 |
242f50ce6965a099d58329f132af02c1
|
|
| BLAKE2b-256 |
06dad52a19311235baffb7ca987755ecfee01302df873d4012bf43f5d9b6f014
|
File details
Details for the file entropy_audio_embeddings-0.1.0-py3-none-any.whl.
File metadata
- Download URL: entropy_audio_embeddings-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e17e7521ad8b27afcca21552246df2ccbe9be7ea3bc38c7e0abaacdc7d4ccade
|
|
| MD5 |
f3ebfe89e3ea71ca0e8cde157f2b4c0a
|
|
| BLAKE2b-256 |
98aa4941fa8a3db61162e29dc63127ae306fa40690008d0efc24e8da447bbb75
|