From 5d30944d6ee7051029e3c6a5b9e27e3907c590a9 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 21 Sep 2023 04:23:26 -0600 Subject: [PATCH] Add fire alarm to default audio labels (#7854) * Add fire alarm to default audio list * Update docs for default audio label list * Update audio detectors with default label list --- docs/docs/configuration/audio_detectors.md | 3 ++- docs/docs/configuration/index.md | 1 + frigate/config.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/docs/configuration/audio_detectors.md b/docs/docs/configuration/audio_detectors.md index 3e5fafdf8..37b436151 100644 --- a/docs/docs/configuration/audio_detectors.md +++ b/docs/docs/configuration/audio_detectors.md @@ -50,13 +50,14 @@ cameras: ### Configuring Audio Events -The included audio model has over [500 different types](https://github.com/blakeblackshear/frigate/blob/dev/audio-labelmap.txt) of audio that can be detected, many of which are not practical. By default `bark`, `speech`, `yell`, and `scream` are enabled but these can be customized. +The included audio model has over [500 different types](https://github.com/blakeblackshear/frigate/blob/dev/audio-labelmap.txt) of audio that can be detected, many of which are not practical. By default `bark`, `fire_alarm`, `scream`, `speech`, and `yell` are enabled but these can be customized. ```yaml audio: enabled: True listen: - bark + - fire_alarm - scream - speech - yell diff --git a/docs/docs/configuration/index.md b/docs/docs/configuration/index.md index 4442b3b57..bddced7ac 100644 --- a/docs/docs/configuration/index.md +++ b/docs/docs/configuration/index.md @@ -151,6 +151,7 @@ audio: # Optional: Types of audio to listen for (default: shown below) listen: - bark + - fire_alarm - scream - speech - yell diff --git a/frigate/config.py b/frigate/config.py index 6c854ed10..6a8d6ce69 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -48,7 +48,7 @@ DEFAULT_TIME_FORMAT = "%m/%d/%Y %H:%M:%S" FRIGATE_ENV_VARS = {k: v for k, v in os.environ.items() if k.startswith("FRIGATE_")} DEFAULT_TRACKED_OBJECTS = ["person"] -DEFAULT_LISTEN_AUDIO = ["bark", "speech", "yell", "scream"] +DEFAULT_LISTEN_AUDIO = ["bark", "fire_alarm", "scream", "speech", "yell"] DEFAULT_DETECTORS = {"cpu": {"type": "cpu"}} DEFAULT_DETECT_DIMENSIONS = {"width": 1280, "height": 720}