Limit conversation actions duration to 3 seconds

This commit is contained in:
M66B 2022-01-20 21:21:06 +01:00
parent 69e178fcd3
commit 5b2e77cbf5
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class TextHelper {
private static final float MIN_DETECT_PROBABILITY = 0.80f; private static final float MIN_DETECT_PROBABILITY = 0.80f;
private static final String TRANSLITERATOR = "Any-Latin; Latin-ASCII"; private static final String TRANSLITERATOR = "Any-Latin; Latin-ASCII";
private static final int MAX_CONVERSATION_SAMPLE_SIZE = 8192; private static final int MAX_CONVERSATION_SAMPLE_SIZE = 8192;
private static final long MAX_CONVERSATION_DURATION = 5000; // milliseconds private static final long MAX_CONVERSATION_DURATION = 3000; // milliseconds
private static final ExecutorService executor = private static final ExecutorService executor =
Helper.getBackgroundExecutor(0, "text"); Helper.getBackgroundExecutor(0, "text");