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

Track upload / Unknown track / Determine artist/title

$
0
0

Hi guys,

As part of a tagging capability in my program I have implemented code snippets in Java from Echonest to determine artist and title of unknown audio files by sending file extracts I also tried sending uncut files). This worked fine until last week. It now seems to impossible to get artist and title name by not having changed the source code.

Java code extract:

    try {

        File file = new File("E:\\audio.mp3");
        EchoNestAPI echoNest = new EchoNestAPI("xxxxxxxx");
        echoNest.setTraceSends(true);
        echoNest.setTraceRecvs(true);
        Track track = echoNest.uploadTrack(file);
        track.waitForAnalysis((60 * 1000) / 2);
        System.out.println("ID: " + track.getID());
        System.out.println("Artista: " + track.getArtistName());
        System.out.println("Titolo:" + tracciak.getTitle());
        System.out.println("Duration:" + track.getDuration());

    } catch (EchoNestException | IOException ex) { ex.printStackTrace(); }

I have also tried CURL to start a request:

curl -F "api_key=7AROE6EHUTRXT91XA" -F "filetyp@/media/MEDIA/audio.mp3""http://developer.echonest.com/api/v4/track/upload"

Result: Only if an mp3 tag is stored already in the file it worked for both Java and CURL) and provides correct values. However, this is not the target I am heading to. My idea is to detect tag data (at least artist and title) by using Echonest. This worked fine until last week.

My question, what did happen? Is this error associated with the API Key used (rate limit not exceeded)? Did you have any server problems last weekend? Is there any country restrictions since my first attempts started in another country? Please help me out.

Regards


Viewing all articles
Browse latest Browse all 1582

Trending Articles