Audio detection question: how to trigger on any noise? #19965
|
Frigate 0.16.1, rpi5, hailo8 I've been using ZoneMinder for years and have recently been switching over to Frigate. One of my cameras is configured to contact ZoneMinder's zmtrigger when the camera "hears" sounds over a certain volume threshold. So, it provides low-tech alerting on noises in an otherwise quiet environment. In Frigate I have the following camera config for the above camera (an Axis M1054) ffmpeg is seeing the two streams from the camera so a believe the audio detector should be getting data: I've been gradually lowering the min_volume to try to get it to trigger on the same events that ZoneMinder is currently picking up, but have not been successful yet. Is the reason that whatever sounds are being detected do not match the audio detector's default listen for bark, fire_alarm, scream, speech, and yell, or simply that the sounds are not yet above the min_volume threshold? I'd be okay with the audio detector simply letting me know that it heard something, bonus points if it labeled the event with what it thought it heard. I don't think I want to explicitly list the contents of its audio-labelmap.txt though. --Larry |
Replies: 2 comments 3 replies
|
The issue is likely that the detected sounds don't match Frigate's default audio detection labels. By default, Frigate only listens for specific audio types: The included audio model has over 500 different types of audio that can be detected (1). To trigger on a broader range of sounds, you'll need to explicitly configure additional audio labels in your Here's how to expand your audio detection: audio:
enabled: true
min_volume: 300
listen:
- bark
- fire_alarm
- scream
- speech
- yell
- door_slam
- footsteps
- glass_break
# Add other relevant labels from the labelmapYou can find the complete list of available audio labels in the audio-labelmap.txt file referenced in the documentation (1). The audio detector uses volume levels similar to how motion detection works - Frigate will not run audio detection unless the audio volume is above the configured If you want broader detection without listing hundreds of labels, you might need to experiment with adding common environmental sounds from the labelmap that are likely to occur in your quiet environment. 📚 Sources: Have another question? Just tag @inkeep. |
|
I'll add to the AI's correct response above - the next version of Frigate (0.17) will add a feature to the Debug view to make debugging audio levels easier. |
The issue is likely that the detected sounds don't match Frigate's default audio detection labels. By default, Frigate only listens for specific audio types:
bark,fire_alarm,scream,speech, andyell(1). If the sounds in your environment don't match these categories, no audio events will be triggered regardless of volume.The included audio model has over 500 different types of audio that can be detected (1). To trigger on a broader range of sounds, you'll need to explicitly configure additional audio labels in your
listenconfiguration.Here's how to expand your audio detection: