forked from Github/frigate
Only run audio detection when audio is above noise threshold (#7078)
* Only run audio detection when audio is above noise threshold * Formatting * Fix event parsing * Update frigate/events/audio.py Co-authored-by: Blake Blackshear <blakeb@blakeshome.com> --------- Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>
This commit is contained in:
@@ -413,6 +413,9 @@ class AudioConfig(FrigateBaseModel):
|
||||
max_not_heard: int = Field(
|
||||
default=30, title="Seconds of not hearing the type of audio to end the event."
|
||||
)
|
||||
min_volume: int = Field(
|
||||
default=500, title="Min volume required to run audio detection."
|
||||
)
|
||||
listen: List[str] = Field(
|
||||
default=DEFAULT_LISTEN_AUDIO, title="Audio to listen for."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user