From e174fbddb8c1f0496f9eb27ecd8df8c41d5dda34 Mon Sep 17 00:00:00 2001 From: Marcin Rajwa Date: Fri, 17 May 2019 01:45:24 +0200 Subject: [PATCH] detector: set default preamble time to 0 With this patch default preamble is set to zero meaning KWD is activated from start, no delay. Signed-off-by: Marcin Rajwa --- src/audio/detect_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/detect_test.c b/src/audio/detect_test.c index 5521e3cce..d9a7f4edf 100644 --- a/src/audio/detect_test.c +++ b/src/audio/detect_test.c @@ -29,8 +29,8 @@ #define ACTIVATION_DEFAULT_THRESHOLD_S16 \ ((int16_t)((INT16_MAX) * (ACTIVATION_DEFAULT_THRESHOLD))) -/* number of samples to be treated as a full keyphrase */ -#define KEYPHRASE_DEFAULT_PREAMBLE_LENGTH (30 * 1024) +/* default number of samples before detection is activated */ +#define KEYPHRASE_DEFAULT_PREAMBLE_LENGTH 0 struct comp_data { struct sof_detect_test_config config;