Quantcast
Channel: The Echo Nest Developer Forum
Viewing all 1582 articles
Browse latest View live

Multiple songs' audio_profile in a single call?

$
0
0

Create a taste profile, add the users' songs in chunks of about a 1000 items with tasteprofile/update calls, then read them out with tasteprofile/read and the audio_summary bucket.


Track profile from MusicBrainz track ID

$
0
0

Is there any progress on this ?

Thanks

Track profile from MusicBrainz track ID

$
0
0

Cho,

You can use Musicbrainz "recording" IDs as song IDs. For example the request in the original query works, if you use the same MBID as a song ID rather than a track ID:

http://developer.echonest.com/api/v4/song/profile?api_key=XXX&id=musicbrainz:song:54753489-ee00-48bd-ad43-8c0f5c365bff

PHP Identify JSON Post

$
0
0

Hi,

i´m struggling atm with the simple action of sending the json data from the enfmp tagger to the server.

"&#95" => _

$file =file_get_contents('./test.json');
$jsondecode = json_decode($file,true );
foreach($jsondecode as $puffer) {
  $result = $puffer['code'];
}
$post = array(
     "api_key"=>"=MYAPIKEY",
     "version"=>"=3.15",
     "code"=>"=$result",
);
$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/song/identify");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post); 
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));

$json_response = curl_exec($ch);
$response = json_decode($json_response, true);

The Response is

  ["response"]=>
  array(1) {
    ["status"]=>
    array(3) {
      ["version"]=>
      string(3) "4.2"
      ["code"]=>
      int(1)
      ["message"]=>
      string(22) "1|Invalid key: Unknown"
    }
  }
}

Can someone look over the code and give me some hints or examples?

greetings :)

Track.get_analysis() failure

$
0
0

I'm working with pyechonest and I'm trying to use the the get_analysis() method, but it never returns successfully. The minimum code to reproduce my problem is:

from pyechonest import config, track
    config.ECHO _NEST _API _KEY='my key in here'
    t = track.track _from _id('TRJSEBQ1390EC0B548')
    t.get _analysis()

(sorry about the spaces before the underscores, otherwise they show up as &#95)

Which returns:

Exception: Failed to create track analysis.

I've tried this with a number of different track ID's, and have gotten the same result every time. Any suggestions about how to solve this problem?

Track.get_analysis() failure

$
0
0

sfleckenstein - when I call the API directly to check on the status of the track I see that it has been analyzed successfully, but it appears that the data for it is not where it should be. Our back-end engineers are checking to see where it went. In the mean time, if possible, I suggest you re-upload/analyze the track, get a new TR id and try again.

HTTP OPTIONS request causing XMLHTTPRequest failure

$
0
0

Hi Echonest, I am trying to use your API inside the browser to get information about some tracks. When I call http://developer.echonest.com/api/v4/track/profile with a simple GET request everything works fine. But if I want to modify that request by setting the cache-control header Chrome and Firefox do an OPTIONS request first to check if they are allowed to do that and this request fails. Do you support OPTIONS requests for that endpoint?

Track.get_analysis() failure

$
0
0

sfleckenstein,

"back-end engineer" here. Can you say when you first uploaded the track that gave you the ID TRJSEBQ1390EC0B548? I am looking into why that ID is not found in our database.

If you have the audio, could you possibly compute an md5 on the file and reply with that also? (On Mac, just run "md5 ". Finally, if you upload the same audio again, do you get the same TRID?

Thanks. David


Track.get_analysis() failure

$
0
0

I didn't upload the song, I got the ID from the track_from_id() example at: http://echonest.github.io/pyechonest/track.html.

I also tried with a number of ID's I got from the following query:

songs = song.search(style='rock',
                    max _tempo=150,
                    min _tempo=30,
                    results=100)

song _ids = [a _song.id for a _song in songs]

and got the same results.

Track.get_analysis() failure

$
0
0

So that old TRID from the example is no longer valid. You'll need to obtain a current TRID via API calls. Try this:

from pyechonest import config, song, track
config.ECHO_NEST_API_KEY = 'APIKEY'
songs = song.search(style='rock', max_tempo=150, min_tempo=30, results=100)
tracks = songs[0].get_tracks('spotify-WW')
t = track.track_from_id(tracks[0]['id'])
t.get_analysis()
print t.artist, '-', t.title, t.energy

This demonstrates the use of t.get_analysis().

Track profile from MusicBrainz track ID

$
0
0

How can I use MBID to query echonest database?Thanks![url=http://www.officialnflprostore.com/Cheap-Kroy-Biermann-Jersey-c-92_102.html]Kroy Biermann Jersey[/url]

How to access URLString of a song? Can i Convert Song ID to NSURL?

$
0
0

Thank you for sharing this information!http://www.officialnflprostore.com/Cheap-Kroy-Biermann-Jersey-c-92_102.html

Will rdio integration be continued

$
0
0

Since Echo Nest joined spotify, and rdio announced they are dropping Echo Nest for recommendations, will the rdio integration with the API still be present?

Track.get_analysis() failure

$
0
0

Ah, that fixed the problem. Thank you for your help.

How to contact you?

$
0
0

Anyone working in this company at all? Unfortunately I don't live in the US and drive by to check...


How to contact you?

$
0
0

hey floele - I'll make sure someone replies to your inquiries. -- Paul

How to contact you?

$
0
0

That's very kind of you, thanks.

identify error code 4

$
0
0

Hi, I don't understand this error :

{"response": {"status": {"version": "4.2", "code": 4, "message": "query - Missing Parameter: query is required with a POST content-type of "application/x-www-form-urlencoded" or "multipart/form-data""}}}

...when I send this command via cURL :

curl -F "api_key=XXX" -F "code=ABC" -F "version=4.12""http://developer.echonest.com/api/v4/song/identify"> info.txt

identify error code 4

$
0
0

Please see the documentation for song/identify.

If POSTing the call, you need to supply a query parameter in JSON format. You can query with only the code string using a GET:

curl -G http://developer.echonest.com/api/v4/song/identify?api_key=XXX&version=4.12&code=ABC

http://dentistsinsanantoniotexas.com

$
0
0

I am a housewife and I take care of my family's dental health on top. That is why I the best dentists in San Antonio to maintain their teeth.

Viewing all 1582 articles
Browse latest View live