Migrate EchoNest API analyzer to Spotify -
i use use echonest analyzer upload tracks , audio characteristics out of them.
i did sending curl request.
i realise api has mitigated spotify , wonder if can still upload tracks analyze, instead of analyzing tracks given spotify id.
i used use method:
$post = array( "url"=>$title, "api_key"=>"myapi", "format"=>"json" ); $ch = curl_init(); curl_setopt($ch, curlopt_header, 0); curl_setopt($ch, curlopt_returntransfer, true); curl_setopt($ch, curlopt_url, "http://developer.echonest.com/api/v4/track/upload"); curl_setopt($ch, curlopt_post, true); curl_setopt($ch, curlopt_postfields, $post); $response = curl_exec($ch); $result=json_decode($response,true); $status=$result['response']['track']['status'];
is there similar way spotify? thanks.
i can use offline feature analyzer, have used echonest analyzer training original model here.
spotify no longer have upload-analysis functionality, have 2 api endpoints may of interest.
you can high level audio features using our audio features endpoint. provides information 'danceablility' , 'instrumentalness', , few others.
if need more detailed information, can use audio analysis endpoint, provides low level output of tool echonest used information retrieval mentioned.
hopefully 1 of these 2 endpoints work you. should point out though don't have upload functionality, both of these endpoints require spotify track id, , track exist on spotify.
if need able run similar feature extraction on tracks you've got aren't on spotify, of former echonest people have recommended amen me similar program echonest analyser, perhaps useful you?
i hope helps!
Comments
Post a Comment