From 936cba75fbc40f731ab175a113a71cc55db3ad93 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 19 Jun 2023 06:44:43 -0600 Subject: [PATCH] Use not heard config --- frigate/events/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/events/audio.py b/frigate/events/audio.py index 0384cce77..4ef90339b 100644 --- a/frigate/events/audio.py +++ b/frigate/events/audio.py @@ -178,7 +178,7 @@ class AudioEventMaintainer(threading.Thread): now = datetime.datetime.now().timestamp() for detection in self.detections.values(): - if now - detection["last_detection"] > 30: + if now - detection["last_detection"] > self.config.audio.max_not_heard: detection["end_time"] = ( detection["last_detection"] + self.config.record.events.post_capture )