Android / java echonest文件上传错误

时间:2014-08-16 15:01:29

标签: java android

所以我一直试图弄清楚如何在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

http://developer.echonest.com/forums/thread/1624

0 个答案:

没有答案