diff --git a/src/main/java/controller/ExerciseEvaluator.java b/src/main/java/controller/ExerciseEvaluator.java index 40f50af..7db8975 100644 --- a/src/main/java/controller/ExerciseEvaluator.java +++ b/src/main/java/controller/ExerciseEvaluator.java @@ -158,6 +158,7 @@ private int evaluateAudio(int exerciseId, int userId, Date d) throws IOException if (audioExecution!=null){ SpeechRecognition s = new SpeechRecognition(); audioText = s.azureSTT(audioExecution); + audioExecution.close(); } if(audioText != null) { @@ -189,7 +190,6 @@ private int evaluateAudio(int exerciseId, int userId, Date d) throws IOException right++; } } - double result = ((right/total)*100); return (int) Math.round(result);