mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 03:05:26 +03:00
Add audio detectors docs
This commit is contained in:
parent
51a09b43d0
commit
fc4a0ffb9f
63
docs/docs/configuration/audio_detectors.md
Normal file
63
docs/docs/configuration/audio_detectors.md
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
---
|
||||||
|
id: audio_detectors
|
||||||
|
title: Audio Detectors
|
||||||
|
---
|
||||||
|
|
||||||
|
Frigate provides a builtin audio detector which runs on the CPU. Compared to object detection in images, audio detection is a relatively lightweight operation so the only option is to run the detection on a CPU.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Audio events work by detecting a type of audio and creating an event, the event will end once the type of audio has not been heard for the configured amount of time. Audio events save a snapshot at the beginning of the event as well as recordings throughout the event. The recordings are retained using the configured recording retention.
|
||||||
|
|
||||||
|
### Enabling Audio Events
|
||||||
|
|
||||||
|
Audio events can be enabled for all cameras or only for specific cameras.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
|
||||||
|
audio: # <- enable audio events for all camera
|
||||||
|
enabled: True
|
||||||
|
|
||||||
|
cameras:
|
||||||
|
front_camera:
|
||||||
|
ffmpeg:
|
||||||
|
...
|
||||||
|
audio:
|
||||||
|
enabled: True # <- enable audio events for the front_camera
|
||||||
|
```
|
||||||
|
|
||||||
|
If you are using multiple streams then you must set the `audio` role on the stream that is going to be used for audio detection, this can be any stream but the stream must have audio included.
|
||||||
|
|
||||||
|
:::note
|
||||||
|
|
||||||
|
The ffmpeg process for capturing audio will be a separate connection to the camera along with the other roles assigned to the camera, for this reason it is recommended that the go2rtc restream is used for this purpose. See [the restream docs](/configuration/restream.md) for more information.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
cameras:
|
||||||
|
front_camera:
|
||||||
|
ffmpeg:
|
||||||
|
inputs:
|
||||||
|
- path: rtsp://.../main_stream
|
||||||
|
roles:
|
||||||
|
- record
|
||||||
|
- path: rtsp://.../sub_stream # <- this stream must have audio enabled
|
||||||
|
roles:
|
||||||
|
- audio
|
||||||
|
- detect
|
||||||
|
```
|
||||||
|
|
||||||
|
### Configuring Audio Events
|
||||||
|
|
||||||
|
The included audio model has over 500 different types 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.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
audio:
|
||||||
|
enabled: True
|
||||||
|
listen:
|
||||||
|
- bark
|
||||||
|
- scream
|
||||||
|
- speech
|
||||||
|
- yell
|
||||||
|
```
|
||||||
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: detectors
|
id: object_detectors
|
||||||
title: Detectors
|
title: Object Detectors
|
||||||
---
|
---
|
||||||
|
|
||||||
Frigate provides the following builtin detector types: `cpu`, `edgetpu`, `openvino`, and `tensorrt`. By default, Frigate will use a single CPU detector. Other detectors may require additional configuration as described below. When using multiple detectors they will run in dedicated processes, but pull from a common queue of detection requests from across all cameras.
|
Frigate provides the following builtin detector types: `cpu`, `edgetpu`, `openvino`, and `tensorrt`. By default, Frigate will use a single CPU detector. Other detectors may require additional configuration as described below. When using multiple detectors they will run in dedicated processes, but pull from a common queue of detection requests from across all cameras.
|
||||||
@ -16,7 +16,8 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
Configuration: [
|
Configuration: [
|
||||||
"configuration/index",
|
"configuration/index",
|
||||||
"configuration/detectors",
|
"configuration/object_detectors",
|
||||||
|
"configuration/audio_detectors",
|
||||||
"configuration/cameras",
|
"configuration/cameras",
|
||||||
"configuration/masks",
|
"configuration/masks",
|
||||||
"configuration/record",
|
"configuration/record",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user