Forgot to mention I am using Unity, and using this method: WWWForm
failure with local file upload
failure with local file upload
hsewell,
I haven't used C# or Unity, but when uploading a local file (e.g. using curl) the POST command looks something like this:
curl -F "api_key=API_KEY" -F "track=@music.ogg""http://developer.echonest.com/api/v4/track/upload?&filetype=ogg"
So try leaving off the Content-Type and URL fields.
David
failure with local file upload
I'm also not familiar with Unity, but Content-Type should be a header rather than a form value if you include it.
failure with local file upload
Finally got it, thanks for your help guys! Problem 1 was what you pointed out, and problem 2 was Unity making it hard to change the request header. The WWWForm was not needed. If anyone ever needs to know:
byte[] track= www.bytes;
string url = "http://developer.echonest.com/api/v4/track/upload?api_key=API_KEY&filetype=ogg";
Hashtable headers=new Hashtable();
headers.Add("Content-Type","application/octet-stream");
WWW post = new WWW(url, @track ,headers);
Again, thanks for the help.
Requesting Fingerprinting Wait Time
Thank you!
Song/identify will be offline for extended maintenance
To developers using song/identify:
Due to some necessary, critical infrastructure maintenance, we will be taking song/identify offline starting today. If the maintenance proceeds as planned, song/identify functionality will be restored by the end of next week.
Paul
Song Identify Problem
For the past couple of days the /song/identify api had been alternating between returning 503 Service Temporarily Unavailable messages and empty responses. This can be confirmed by clicking on the example get request found in the api documentation. The other song api's seem to be working just fine, however the application I'm developing heavily relies on the identify api.
I would appreciate it if someone could take a look into the issues, thanks!
ps: awesome services you guys provide! !
Song Identify Problem
Sorry it was supposed to say that it has been alternating, not that it had been. The issue is still present. Stupid phone/Swype.
Song Identify Problem
Please remove this thread. I missed the post in announcements
Analysis for Spotify tracks
Now that Echonest is a part of Spotify, can we expect better coverage of the Spotify catalogue anytime soon? I've noticed the following:
- most new tracks give the "The Identifier specified does not exist" response
- year-old tracks have metadata but audio_summary is empty
- older tracks have analysis, but sometimes the sync is way off, up to 3 seconds (could be because Spotify have replaced the audio file?). I'm using synchstring for this now though, and it seems to work.
Analysis for Spotify tracks
I can add that my fallback method for now is to get the song_id and use that in song/profile to get an analysis that way. It works but it is suboptimal for two reasons:
- an extra server call needed
- no guarantee that the analysis will match the track well? (beat timings etc)
Analysis for Spotify tracks
svantana,
Can you give an example of some Spotify track(s) that you cannot find? While we may not have track-level analysis for everything, we try to keep the catalog current.
David
Analysis for Spotify tracks
Thank you for the swift answer!
Perhaps I am doing something wrong, but e.g. requesting the chart topper "Rather Be" like this:
http://developer.echonest.com/api/v4/track/profile?api_key=
gives: "audio_summary": {}
as well as pretty much anything on the Spotify "Top List".
Also, going to Disclosure's artist page, grabbing the Spotify URI for the track "Latch" gives me: spotify:track:51ODNNDZm21HU7wI7cccRr
Followingly I do the query:
http://developer.echonest.com/api/v4/track/profile?api_key=
which returns: "The Identifier specified does not exist"
Perhaps there is some confusion regarding how to use the Spotify URI relative to the spotify-WW id? But for older tracks this way works most of the time...
Song/identify will be offline for extended maintenance
Hey all - song/identify for ENMFP fingerprints is now back online. If the rest of maintenance proceeds as planed, Echoprint lookups should be restored by the end of the week. -- Paul
from pyechonest import config
Helped me too. Also new to Python and coming from php. thx.
Where is AllOnTheOne.mp3?
This is the output when I run One.py, but I can't seem to find AllOnTheOne.mp3. It looks like it should be in either One/, Music/ or echo-nest-remix-examples/, (where it was called from), but it doesn't seem to exist at all. I'm sure I'm missing something really obvious.
$ python one/one.py music/Karl_Blau-Gnos_Levohs.mp3 AllOnTheOne.mp3
en-ffmpeg -i "music/Karl_Blau-Gnos_Levohs.mp3" -y -ac 2 -ar 44100 "/var/folders/X2/X2KGhecyG0aQhzRDohJqtU+++TI/-Tmp-/tmp9W8l9o.wav"
Computed MD5 of file is 82ef0e22684e01a1523079afe15120a9
Probing for existing analysis
en-ffmpeg -i "/var/folders/X2/X2KGhecyG0aQhzRDohJqtU+++TI/-Tmp-/tmp_gFTKD.wav" -y -ab 128k -ac 2 -ar 44100 "AllOnTheOne.mp3"
Deleting: /var/folders/X2/X2KGhecyG0aQhzRDohJqtU+++TI/-Tmp-/tmp_gFTKD.wav
Get tempo of several songs
RunBeat,
If you are identifying songs using track/upload or song/search, then you should have song IDs (SO..., SO..., etc.). You can get multiple audio summaries at once using song/profile.
e.g. http://developer.echonest.com/api/v4/song/profile?api_key=API_KEY&format=json&id=SOATBBX1311AFDC272&id=SOBTLUJ1315CD4A54B&bucket=audio_summary
David
Get tempo of several songs
Im getting the list of songs from Spotify playlist, would it be possible to use that ID to fetch the data?
Where is AllOnTheOne.mp3?
I'm running it on osX 10.6.8. Python 2.7.6.
Where is AllOnTheOne.mp3?
Hm. I'm on 10.8.5, but the results should still be similar. If it is not in the same folder that you run the script from, does a Spotlight search find it?
.thor