From 9449808ffeeb9728b45e27135a44f4b00343f4c7 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Sun, 16 Jul 2023 17:17:21 -0600 Subject: [PATCH] Fix access --- frigate/events/audio.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frigate/events/audio.py b/frigate/events/audio.py index abd491ad7..70f032d03 100644 --- a/frigate/events/audio.py +++ b/frigate/events/audio.py @@ -201,7 +201,10 @@ class AudioEventMaintainer(threading.Thread): if label not in self.config.audio.listen: continue - if score > self.config.audio.filters.get(label, {}).get("threshold", 0): + filter = self.config.audio.filters + if filter is None or score > filter.get(label, {}).get( + "threshold", 0.8 + ): self.handle_detection(label, score) self.expire_detections()