Skip to content

NVR with realtime local object detection for IP cameras

Fix audio filter config (#7401)

Nicolas Mowenfbed3fbb8be5
diff --git a/frigate/events/audio.py b/frigate/events/audio.py
index 72333bc8a1..911013a38c 100644
--- a/frigate/events/audio.py
+++ b/frigate/events/audio.py
@@ -198,7 +198,7 @@ class AudioEventMaintainer(threading.Thread):
if label not in self.config.audio.listen:
continue
- if score > (self.config.audio.filters or {}).get(label, {}).get(
+ if score > dict((self.config.audio.filters or {}).get(label, {})).get(
"threshold", 0.8
):
self.handle_detection(label, score)