From 9fadcf4644807fa296d1170a53d1e20766b0a22b Mon Sep 17 00:00:00 2001 From: "Alexander C." Date: Sun, 15 Sep 2024 23:59:53 +0200 Subject: [PATCH] Add logging and refactorings. --- src/main/java/tech/indus340/complexa/utils/AudioUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tech/indus340/complexa/utils/AudioUtils.java b/src/main/java/tech/indus340/complexa/utils/AudioUtils.java index 171d96d..ac85616 100644 --- a/src/main/java/tech/indus340/complexa/utils/AudioUtils.java +++ b/src/main/java/tech/indus340/complexa/utils/AudioUtils.java @@ -13,7 +13,7 @@ public class AudioUtils { public static final double DEFAULT_SILENCE_THRESHOLD = 0.02; // Default threshold for detecting noise public static final int DEFAULT_BUFFER_SIZE = 1024; // Default buffer size public static final long DEFAULT_SILENCE_THRESHOLD_MS = 2000; // Silence threshold duration in milliseconds - public static final long DEFAULT_SILENCE_CONTINUOUS_THRESHOLD_MS = 1000; // Silence threshold duration in milliseconds + public static final long DEFAULT_SILENCE_CONTINUOUS_THRESHOLD_MS = 700; // Silence threshold duration in milliseconds private static long silenceStartTime;