guilhermesad / rspotify

A ruby wrapper for the Spotify Web API
MIT License
717 stars 290 forks source link

Add support for Audio Analysis #260

Open strawberryjellyfish opened 1 year ago

strawberryjellyfish commented 1 year ago

This was something I needed in a project, I've added a function to get the detailed audio analysis for a specific track based on the track id. The result is a nested object equivalent to that defined in the Spotify API.

https://developer.spotify.com/documentation/web-api/reference/get-audio-analysis

Also added rudimentary tests to validate that the response object is in the expected format.