JoshLmao / Spotify4Unity

🎮🎵 Add the SpotifyAPI.NET library into Unity, enabling access to the Spotify Web API, allowing for control of Spotify and accessing the world of music
https://assetstore.unity.com/packages/tools/integration/spotify4unity-ui-tools-spotify-authorization-129028
MIT License
94 stars 8 forks source link

Query Audio Analysis #28

Closed yusuken64 closed 3 years ago

yusuken64 commented 4 years ago

I would like to get the audio analysis for the purpose of making audio visualization. Spotify endpoint: https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-analysis

I tried this but the analysis never has beats.

var id = SpotifyService.CurrentTrack.TrackId;
var analysis = await SpotifyService.WebAPI.GetAudioAnalysisAsync(id);
JoshLmao commented 3 years ago

Hi, Sorry for the delay. I've updated the package to v2.0 which provides full access to SpotifyAPI-NET. You will be able to access the GetAudioAnalysis from the updated Spotify client