Wrote /root/JavaX-Caches/tmp_381755945/main.java - 2593 bytes (written=2593, should be 2593)
javac=0, ecj=1, useJarBot=0
Checking ECJ at port 4898 at 127.0.0.1
/root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar:/root/.tinybrain/snippet-cache/data_1015718.jar:/root/.tinybrain/snippet-cache/data_1015720.jar:/root/.tinybrain/snippet-cache/data_1015721.jar -d /root/JavaX-Caches/tmp_224312780 /root/JavaX-Caches/tmp_381755945/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_381755945/main.java:1: error: class, interface, or enum expected
!7
^
/root/JavaX-Caches/tmp_381755945/main.java:21: error: class, interface, or enum expected
p {
^
/root/JavaX-Caches/tmp_381755945/main.java:28: error: class, interface, or enum expected
AudioFileFormat.Type[] typeArray = AudioSystem.getAudioFileTypes();
^
/root/JavaX-Caches/tmp_381755945/main.java:29: error: class, interface, or enum expected
for (AudioFileFormat.Type type : typeArray) {
^
/root/JavaX-Caches/tmp_381755945/main.java:31: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_381755945/main.java:34: error: class, interface, or enum expected
File file = prepareProgramFile("testfile2.flac"); //Name your file whatever you want
^
/root/JavaX-Caches/tmp_381755945/main.java:35: error: class, interface, or enum expected
try {
^
/root/JavaX-Caches/tmp_381755945/main.java:37: error: class, interface, or enum expected
} catch (Exception ex) {
^
/root/JavaX-Caches/tmp_381755945/main.java:40: error: class, interface, or enum expected
ex.printStackTrace ();
^
/root/JavaX-Caches/tmp_381755945/main.java:41: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_381755945/main.java:48: error: class, interface, or enum expected
sleep(5000); //In our case, we'll just wait 5 seconds.
^
/root/JavaX-Caches/tmp_381755945/main.java:49: error: class, interface, or enum expected
mic.close();
^
/root/JavaX-Caches/tmp_381755945/main.java:50: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_381755945/main.java:53: error: class, interface, or enum expected
print("Recording stopped.");
^
/root/JavaX-Caches/tmp_381755945/main.java:55: error: class, interface, or enum expected
Recognizer recognizer = new Recognizer (Recognizer.Languages.ENGLISH_US, youTubeDataAPIKey());
^
/root/JavaX-Caches/tmp_381755945/main.java:57: error: class, interface, or enum expected
try {
^
/root/JavaX-Caches/tmp_381755945/main.java:59: error: class, interface, or enum expected
print("Sample rate is: " + (int) mic.getAudioFormat().getSampleRate());
^
/root/JavaX-Caches/tmp_381755945/main.java:60: error: class, interface, or enum expected
GoogleResponse response = recognizer.getRecognizedDataForFlac (file, maxNumOfResponses, (int) mic.getAudioFormat().getSampleRate ());
^
/root/JavaX-Caches/tmp_381755945/main.java:61: error: class, interface, or enum expected
print ("Google Response: " + response.getResponse ());
^
/root/JavaX-Caches/tmp_381755945/main.java:62: error: class, interface, or enum expected
print ("Google is " + Double.parseDouble (response.getConfidence ()) * 100 + "% confident in" + " the reply");
^
/root/JavaX-Caches/tmp_381755945/main.java:63: error: class, interface, or enum expected
print("Other Possible responses are: ");
^
/root/JavaX-Caches/tmp_381755945/main.java:64: error: class, interface, or enum expected
for (String s : response.getOtherPossibleResponses ())
^
/root/JavaX-Caches/tmp_381755945/main.java:66: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_381755945/main.java:70: error: class, interface, or enum expected
ex.printStackTrace ();
^
/root/JavaX-Caches/tmp_381755945/main.java:71: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_381755945/main.java:74: error: class, interface, or enum expected
}
^
26 errors