Forums » General Discussion Search

echonest web api for android game - some questions New Reply

Author Post
Posts: 2
Registered: Jun 11, 2010

Hi there!

I found the echonest web api and it seems very promising and just the right thing for my new project: an android game which you have to interact with in sync with music (similar to ausiosurf, but not sure how it'll be exactly yet).

  1. Getting song analysation without uploading (for songs known to echonest)

Bandwidth is very critical on mobile phones and I want my users to be able to play along with songs from their SD-card. I guess for the more popular titles you already have detailed info, so is there a way I can get it without uploading the track? If yes how can I make sure it really is exactly the same track?

  1. get_audio - copyright issues

This is more of a legal question, but maybe you can help me: It would be nice for the user if he can search a specific track (interpret/album and so on) in the internet, then download it (it will then be analysed) using th get_audio function.

The problem is - as you have said in another thread - that you just crawl the web regardless of copyright. Would a "It might be illegal to download this song blabla" notice and an accept box in the game be enough to let it be the users decision, so it's not my fault if users download illegaly? (similar problem to PvP clients I think)

That's all for now, I'll see if my prototypes yield futher questions.

Thank you in advance for your help,

Anselm Eickhoff

Posts: 666
Registered: Sep 08, 2008

Hi Anselm - glad to hear from you.

You can get analysis for tracks without uploading them via the song/search song/profile APIs. Use song/search

http://beta.developer.echonest.com/song.html#search

to find the song that you want. Request the audio_summary bucket to get info for the track including a URL for the detailed analysis. For example, the query:

http://beta.developer.echonest.com/api/v4/song/search?api_key=8TPE3VC60ODJTNTFE&format=json&results=1&artist=lady+gaga&title=bad+romance&bucket=audio_summary

will return info about Lady Gaga's Bad Romance like so:

{"response": {"status": {"version": "4.1", "code": 0, "message": "Success"}, "songs": [{"id": "SOBACJG127D9789748", "title": "Bad Romance", "artist_id": "ARX6TAQ11C8A415850", "artist_name": "Lady Gaga", "audio_summary": {"key": 9, "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRUVMND1264E51CB5B/3/full.json?Signature=SvtoAnSn2JcQnQoc17Zyu4Xkzgc%3D&Expires=1277462520&AWSAccessKeyId=AKIAJTEJGOTDLQY2E77A", "tempo": 127.961, "mode": 0, "time_signature": 4, "duration": 434.10239999999999, "loudness": -6.4969999999999999}}]}}

which incudes an analysis_url to the detailed analysis for the song.

As for your legal question, I'm not an lawyer, so I can't offer any legal advice. Sorry.

Let me know when your app is available so we can add it to our showcase.

Paul

Posts: 2
Registered: Jun 11, 2010

cool, thanks for the quick response, I hadn't seen the beta! Is it possible to find out if it is the exact same song, maybe with something like a MD5 sum?

I will certainly let you know when it's finished, this will take a while however as I am a single hobbyist developer new to android ;)

Thanks!

Anselm

Reply to this Thread

You must log in to post a reply.