Does audio recognition for siren, civil_defence_siren and explosions even work? #20414
Replies: 1 comment 4 replies
-
Your configuration looks correct, but there are several factors that could explain why you're not detecting sirens and explosions: 1. Volume Threshold Frigate uses volume levels to determine when to run audio detection(1). The default You can adjust this threshold: audio:
enabled: true
min_volume: 200 # Lower threshold for higher sensitivity
listen:
- siren
- civil_defense_siren
- explosion As a rule of thumb: 200 is high sensitivity, 500 is medium sensitivity, and 1000 is low sensitivity(2)(3). 2. Detection Confidence Threshold Each audio label has a minimum score threshold (default 0.8) that must be met to trigger an event(2)(3). You can lower this per label: audio:
enabled: true
listen:
- siren
- civil_defense_siren
- explosion
filters:
siren:
threshold: 0.6
civil_defense_siren:
threshold: 0.6
explosion:
threshold: 0.6 3. Model Limitations Frigate uses the YamNet audio detection model(4), which has over 500 different audio types available(1). However, the model's training data may not include the specific characteristics of Ukrainian civil defense sirens or the acoustic signatures of explosions in your environment. The model detects everything in one go and then checks against your 4. Debugging Steps
If you continue having issues after adjusting these settings, the model may simply not recognize the specific acoustic patterns of your local sirens and explosions well enough, which is a limitation of the pre-trained model rather than your configuration. 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I live in Kyiv, Ukraine and air alert siren happens like 5 times a day. Explosions happen regularly during missile attack as well.
I am using Frigate since July, and I've setup audio detection like this:
It didn't detect any of these types (besides speech) not even a single time.
My guess: maybe that's because I use indoor cameras and their mics are not sensitive enough. However, I hear siren on the recordings. Opening windows in the summer didn't help either.
Am I doing it wrong?
Beta Was this translation helpful? Give feedback.
All reactions