rinukkusu / spotify-dart

A dart library for interfacing with the Spotify API.
BSD 3-Clause "New" or "Revised" License
206 stars 92 forks source link

Add support for "Track's Audio Analysis" #173

Closed hyungtaecf closed 1 year ago

hyungtaecf commented 1 year ago

There is the feature "audio analysis" in the Spotify API but I couldn't find it in this package. https://developer.spotify.com/documentation/web-api/reference/get-audio-analysis

In my case, I wanted to get the tempo (BPM) of the songs. Is there any quick way to do it or any chance for it to be implemented in this package?

rinukkusu commented 1 year ago

There is spotify.audioAnalysis.

Should give you the data you need: https://github.com/rinukkusu/spotify-dart/blob/master/lib/src/models/audio_analysis.dart

hyungtaecf commented 1 year ago

Thanks! Sorry, I noticed I was checking an earlier version of the package. Thanks for the quick response :)