Python utilities to process and predict on audio attributes
Project description
Python Module to process and predict on music attributes
Two Models were built and trained to predict valence given an audio sample. One uses a feature pipeline on top of librosa to make a number of predictors that go into a Random Forest model to determine a valence prediction. The other uses OpenAI's whisper model to transcribe lyrics, then tokenize the words, and again a trained Random Forest model makes the prediction based on lyrics.
Model RMSE | |
---|---|
Audio | 1.56 |
Lyrics | 1.28 |
Data Used:
- 1000 Song Dataset - Download here
- Spotify Developer API - 30 second previews
Package Requirements
pip install -r requirements.txt
- make sure to download whisper from openai (not currently included in requirements.txt)
- Also must install ffmpeg (using brew, choco, etc.)
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
File details
Details for the file audiologic-0.1.1.tar.gz
.
File metadata
- Download URL: audiologic-0.1.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c481eb0336923406ac7e00689fd5c414dcbfb1e64230e63a60ac5b3dd6b7c286 |
|
MD5 | 842f53db18fadcb14a8f9355bb5eb3b7 |
|
BLAKE2b-256 | a47757cce8bb2de67f364e0be12730e9e21da084f731e464b8eb3a8ea35be316 |
File details
Details for the file audiologic-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: audiologic-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9cae3a0129b1bed34b9e111d22c22e60c8ed924d990991e360e2071257b2617 |
|
MD5 | f5811ed83e1c63fe01c5df84b7f50bb6 |
|
BLAKE2b-256 | 54a88928b5246247705dcdefc1e43448e31e97038695524c7725517bc3cc9b09 |