From 632db6d136e5e9fabfb9c827922bdb1cbd983382 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Tue, 22 Nov 2022 17:26:10 +0100 Subject: [PATCH] Check duration as milliseconds --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 6cb1c26..ea567c9 100644 --- a/src/index.js +++ b/src/index.js @@ -51,7 +51,7 @@ const CONFIG = { DETECTION_PERCENTAGE_END: '10%', CLAP_AMPLITUDE_THRESHOLD: 0.7, CLAP_ENERGY_THRESHOLD: 0.3, - CLAP_MAX_DURATION: 1500, + CLAP_MAX_DURATION: 1.5, MAX_HISTORY_LENGTH: 100 // no need to maintain big history }