Wrote /root/JavaX-Caches/tmp_220007514/main.java - 2323 bytes (written=2323, should be 2323)
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 -d /root/JavaX-Caches/tmp_1594286949 /root/JavaX-Caches/tmp_220007514/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_220007514/main.java:1: error: class, interface, or enum expected
sS hVAD(S onVoiceStart, S onVoiceStop, bool autoStart) {
^
/root/JavaX-Caches/tmp_220007514/main.java:7: error: class, interface, or enum expected
var vadStream;
^
/root/JavaX-Caches/tmp_220007514/main.java:8: error: class, interface, or enum expected
var audioMeter;
^
/root/JavaX-Caches/tmp_220007514/main.java:9: error: class, interface, or enum expected
var audioMeterClipLag = 5000;
^
/root/JavaX-Caches/tmp_220007514/main.java:12: error: class, interface, or enum expected
function startUserMedia(stream) {
^
/root/JavaX-Caches/tmp_220007514/main.java:16: error: class, interface, or enum expected
window.AudioContext = window.AudioContext || window.webkitAudioContext;
^
/root/JavaX-Caches/tmp_220007514/main.java:17: error: class, interface, or enum expected
var audioContext = new AudioContext();
^
/root/JavaX-Caches/tmp_220007514/main.java:20: error: class, interface, or enum expected
var source = audioContext.createMediaStreamSource(stream);
^
/root/JavaX-Caches/tmp_220007514/main.java:23: error: class, interface, or enum expected
audioMeter = createAudioMeter(audioContext, null, null, audioMeterClipLag);
^
/root/JavaX-Caches/tmp_220007514/main.java:24: error: class, interface, or enum expected
source.connect(audioMeter);
^
/root/JavaX-Caches/tmp_220007514/main.java:27: error: class, interface, or enum expected
var options = {
^
/root/JavaX-Caches/tmp_220007514/main.java:29: error: class, interface, or enum expected
voice_stop: function() { haveVoice = false; ]] + onVoiceStop + [[ },
^
/root/JavaX-Caches/tmp_220007514/main.java:30: error: class, interface, or enum expected
voice_start: function() { haveVoice = true; ]] + onVoiceStart + [[ }
^
/root/JavaX-Caches/tmp_220007514/main.java:34: error: class, interface, or enum expected
var vad = new VAD(options);
^
/root/JavaX-Caches/tmp_220007514/main.java:35: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_220007514/main.java:39: error: class, interface, or enum expected
vadStarted = false;
^
/root/JavaX-Caches/tmp_220007514/main.java:40: error: class, interface, or enum expected
console.log("Stopping VAD");
^
/root/JavaX-Caches/tmp_220007514/main.java:41: error: class, interface, or enum expected
if (vadStream != undefined) {
^
/root/JavaX-Caches/tmp_220007514/main.java:43: error: class, interface, or enum expected
vadStream.getTracks().forEach(function (track) { track.stop(); });
^
/root/JavaX-Caches/tmp_220007514/main.java:44: error: class, interface, or enum expected
vadStream = null;
^
/root/JavaX-Caches/tmp_220007514/main.java:45: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_220007514/main.java:48: error: class, interface, or enum expected
audioMeter = null;
^
/root/JavaX-Caches/tmp_220007514/main.java:49: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_220007514/main.java:54: error: class, interface, or enum expected
vadStarted = true;
^
/root/JavaX-Caches/tmp_220007514/main.java:55: error: class, interface, or enum expected
console.log("Starting VAD");
^
/root/JavaX-Caches/tmp_220007514/main.java:57: error: class, interface, or enum expected
navigator.getUserMedia = ( navigator.getUserMedia
^
/root/JavaX-Caches/tmp_220007514/main.java:61: error: class, interface, or enum expected
navigator.getUserMedia({audio: true}, startUserMedia, function(e) {
^
/root/JavaX-Caches/tmp_220007514/main.java:63: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_220007514/main.java:64: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_220007514/main.java:68: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_220007514/main.java:72: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_220007514/main.java:77: error: class, interface, or enum expected
}
^
32 errors