所以我一直试图弄清楚如何在echonest服务器上传文件进行分析,但我无法
String[] args={"/storage/sdcard1/Music/Drive soundtrack/A Real Hero (feat. Electric Youth).mp3"};
File file = new File(args[0]);
if(!file.canRead())
{
printUsage();
System.out.println("Insert a valid path!");
}
System.out.println("validd path!");
EchoNestAPI echoNest = new EchoNestAPI("080NXJV4YHVLIVBFA");
System.out.println("hello!");
Track track = echoNest.uploadTrack(file,true);
System.out.println("uploaded!");
track.waitForAnalysis((60*1000)/2);
System.out.println("ID: "+track.getID());
System.out.println("Artist: "+track.getArtistName());
System.out.println("Title: "+track.getTitle());
我在网上搜索时遇到了类似的问题,但我无法找到解决方案。
http://archive-com.com/page/3694036/2014-02-11/http://developer.echonest.com/forums/thread/365
http://developer1072.rssing.com/chan-22893681/all_p31.html#item617