Forums » Bugs & Problems Search

TrackAPI.java New Reply

Author Post
Posts: 1
Registered: Jul 01, 2011

Hi,

How can I use this TrackAPI.java? Im getting error when using the codes posted in internet. I'm trying to get the length of audio (seconds or minute) Here is the error: EchoNest Error: java.net.ConnectException: Connection timed out: connect cmd: get_metadata?md5=11102ff9beaa128c4cb2226998fa4e02

Here is my code: TrackAPI trackAPI = new TrackAPI("NPOPRAOYEWMRCK3X4"); String id = trackAPI.uploadTrack(new File("C:\Users\Paul.MNLWKSPRG050\Desktop\10.100.1.38\wav\ES_E386197_A383071_I32277_C-5315_D20110517_T074646.wav"), true); AnalysisStatus status = trackAPI.waitForAnalysis(id, 60000); System.out.println("Tempo in BPM: " + trackAPI.getTempo(id)); Can someone assist me?

Posts: 713
Registered: Sep 08, 2008

paulfrancisco - it looks like you are using the V3 version of the Java API. This is now deprecated (as is the V3 version of our web API). I suggest you switch to the current Java client: http://code.google.com/p/jen-api/

Paul

Reply to this Thread

You must log in to post a reply.