Using echonest api jEN for Android project
Date : March 29 2020, 07:55 AM
may help you . It turns out that removing the uses-library tags fixed the problem. Like I had mentioned, I wasn't sure if it was necessary in the first place. Funny thing is, I thought I had tried to run my app without the tags in the manifest file but I guess I didn't..
|
How to get the spotify id of a specific song with echonest api
Tag : api , By : clifton anderson
Date : March 29 2020, 07:55 AM
it fixes the issue Looking at the response you've got from The Echo Nest's API, the track URI is located in response.songs[0].tracks[0].foreign_id. So the documentation is correct, it's just that it didn't cover the response object that the songs array lives inside. Hope this helps!
|
Echonest request limit
Date : March 29 2020, 07:55 AM
should help you out The Echonest API has partly been migrated to the Spotify API and the original API will be shut down. See: http://developer.echonest.com/
|
Echonest :: song duration
Date : March 29 2020, 07:55 AM
hope this fix your issue durationis an analysis found in song/profile, and not in playlist/static method, so we need a second response from the api. this is one way of obtaining each song duration (as well as printing artist_name and song_title): #get 'playlist response'
response_playlist = en.get('playlist/static', **params)
song_playlist = response_playlist['songs']
if len(song_playlist) > 0:
for i, song in enumerate(song_playlist):
#we need to track each song id
song_id = song_playlist[i]['id'] #ok
#in order to get song 'duration', we need to access 'song/profile response'
#and pass the id as an argument to 'audio_summary'
response_profile = en.get('song/profile', id=song_id, bucket="audio_summary")
song_profile = response_profile['songs']
dur = song_profile[0]['audio_summary']['duration']
print dur
#now we access each song 'foreign_id', which is playable by, say, Spotify
for track in song:
track = song['tracks'][i]
track_id = track['foreign_id'].replace('-WW', '')
print '{0} {2} {1}'.format(i, song['artist_name'], song['title'])
|
how connect to echonest from enyo
Date : March 29 2020, 07:55 AM
|