mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-29 08:31:27 +03:00
remove scream audio label
scream was never mapped to anything in frigate's custom labelmap, yell is used everywhere
This commit is contained in:
parent
a12b0c3332
commit
a88cdc2231
@ -212,7 +212,6 @@ audio:
|
|||||||
listen:
|
listen:
|
||||||
- bark
|
- bark
|
||||||
- fire_alarm
|
- fire_alarm
|
||||||
- scream
|
|
||||||
- speech
|
- speech
|
||||||
- yell
|
- yell
|
||||||
# Optional: Filters to configure detection.
|
# Optional: Filters to configure detection.
|
||||||
|
|||||||
@ -88,7 +88,7 @@ Volume is considered motion for recordings, this means when the `record -> retai
|
|||||||
|
|
||||||
### Configuring Audio Events
|
### 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`, `fire_alarm`, `scream`, `speech`, and `yell` 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`, `speech`, and `yell` are enabled but these can be customized.
|
||||||
|
|
||||||
<ConfigTabs>
|
<ConfigTabs>
|
||||||
<TabItem value="ui">
|
<TabItem value="ui">
|
||||||
@ -107,7 +107,6 @@ audio:
|
|||||||
listen:
|
listen:
|
||||||
- bark
|
- bark
|
||||||
- fire_alarm
|
- fire_alarm
|
||||||
- scream
|
|
||||||
- speech
|
- speech
|
||||||
- yell
|
- yell
|
||||||
```
|
```
|
||||||
|
|||||||
@ -9,7 +9,7 @@ from ..base import FrigateBaseModel
|
|||||||
__all__ = ["AudioConfig", "AudioFilterConfig"]
|
__all__ = ["AudioConfig", "AudioFilterConfig"]
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_LISTEN_AUDIO = ["bark", "fire_alarm", "scream", "speech", "yell"]
|
DEFAULT_LISTEN_AUDIO = ["bark", "fire_alarm", "speech", "yell"]
|
||||||
|
|
||||||
|
|
||||||
class AudioFilterConfig(FrigateBaseModel):
|
class AudioFilterConfig(FrigateBaseModel):
|
||||||
@ -41,7 +41,7 @@ class AudioConfig(FrigateBaseModel):
|
|||||||
listen: list[str] = Field(
|
listen: list[str] = Field(
|
||||||
default=DEFAULT_LISTEN_AUDIO,
|
default=DEFAULT_LISTEN_AUDIO,
|
||||||
title="Listen types",
|
title="Listen types",
|
||||||
description="List of audio event types to detect (for example: bark, fire_alarm, scream, speech, yell).",
|
description="List of audio event types to detect (for example: bark, fire_alarm, speech, yell).",
|
||||||
)
|
)
|
||||||
filters: Optional[dict[str, AudioFilterConfig]] = Field(
|
filters: Optional[dict[str, AudioFilterConfig]] = Field(
|
||||||
None,
|
None,
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
},
|
},
|
||||||
"listen": {
|
"listen": {
|
||||||
"label": "Listen types",
|
"label": "Listen types",
|
||||||
"description": "List of audio event types to detect (for example: bark, fire_alarm, scream, speech, yell)."
|
"description": "List of audio event types to detect (for example: bark, fire_alarm, speech, yell)."
|
||||||
},
|
},
|
||||||
"filters": {
|
"filters": {
|
||||||
"label": "Audio filters",
|
"label": "Audio filters",
|
||||||
@ -156,7 +156,7 @@
|
|||||||
"description": "FFmpeg settings including binary path, args, hwaccel options, and per-role output args.",
|
"description": "FFmpeg settings including binary path, args, hwaccel options, and per-role output args.",
|
||||||
"path": {
|
"path": {
|
||||||
"label": "FFmpeg path",
|
"label": "FFmpeg path",
|
||||||
"description": "Path to the FFmpeg binary to use or a version alias (\"5.0\" or \"7.0\")."
|
"description": "Path to the FFmpeg binary to use or a version alias (\"5.0\" or \"8.0\")."
|
||||||
},
|
},
|
||||||
"global_args": {
|
"global_args": {
|
||||||
"label": "FFmpeg global arguments",
|
"label": "FFmpeg global arguments",
|
||||||
|
|||||||
@ -547,7 +547,7 @@
|
|||||||
},
|
},
|
||||||
"listen": {
|
"listen": {
|
||||||
"label": "Listen types",
|
"label": "Listen types",
|
||||||
"description": "List of audio event types to detect (for example: bark, fire_alarm, scream, speech, yell)."
|
"description": "List of audio event types to detect (for example: bark, fire_alarm, speech, yell)."
|
||||||
},
|
},
|
||||||
"filters": {
|
"filters": {
|
||||||
"label": "Audio filters",
|
"label": "Audio filters",
|
||||||
@ -683,7 +683,7 @@
|
|||||||
"description": "FFmpeg settings including binary path, args, hwaccel options, and per-role output args.",
|
"description": "FFmpeg settings including binary path, args, hwaccel options, and per-role output args.",
|
||||||
"path": {
|
"path": {
|
||||||
"label": "FFmpeg path",
|
"label": "FFmpeg path",
|
||||||
"description": "Path to the FFmpeg binary to use or a version alias (\"5.0\" or \"7.0\")."
|
"description": "Path to the FFmpeg binary to use or a version alias (\"5.0\" or \"8.0\")."
|
||||||
},
|
},
|
||||||
"global_args": {
|
"global_args": {
|
||||||
"label": "FFmpeg global arguments",
|
"label": "FFmpeg global arguments",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user