Echonest Track Analysis of Live Stream

时间:2016-02-12 20:38:45

标签: json web-services echonest

I'm trying to see if I can use the Echonest API to determine the current track playing on a live stream of a radio station (lets use the radio station I am testing on, WRUC 89.7FM, as an example).

Is it possible to do something such as:

for (i = 1; i<4; i++) {
  window['student'+i].print();
  }

or

curl -X POST "http://developer.echonest.com/api/v4/track/upload" -d "api_key=XXXXX&url=http://wruc-transmitter.union.edu:8000/stream.m3u"

Whenever I do the previous commands I get the following result, I'm assuming because it is a continuous stream and not a finite audio file:

curl -X POST "http://developer.echonest.com/api/v4/track/upload" -d "api_key=XXXXX&url=http://wruc-transmitter.union.edu:8000/listen.m3u"

and

{
    "response" : {
        "status" : {
            "version" : "4.2", 
            "code": 5, 
            "message": "url - Failed to retrieve URL: http://wruc-transmitter.union.edu:8000/stream.m3u (response code: 599)"
        }
    }
}

(respectively)

Is there a way to only upload a portion of the stream to analyze? Or am I just making the wrong type of request?

0 个答案:

没有答案