System.err.println("Can't find " + path);
} else {
try {
Track track = en.uploadTrack(file);
track.waitForAnalysis(30000);
if (track.getStatus() == Track.AnalysisStatus.COMPLETE) {
System.out.println("Tempo: " + track.getTempo());
System.out.println("Danceability: " + track.getDanceability());
System.out.println("Speechiness: " + track.getSpeechiness());
System.out.println("Liveness: " + track.getLiveness());