mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Update frigate/events/audio.py
Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>
This commit is contained in:
parent
b2981b5788
commit
396ca27ef4
@ -169,7 +169,7 @@ class AudioEventMaintainer(threading.Thread):
|
||||
if not self.feature_metrics[self.config.name]["audio_enabled"].value:
|
||||
return
|
||||
|
||||
rms = np.sqrt(np.mean(np.absolute(audio.astype(np.float32) ** 2)))
|
||||
rms = np.sqrt(np.mean(np.absolute(np.square(audio.astype(np.float32)))))
|
||||
|
||||
# only run audio detection when volume is above min_volume
|
||||
if rms >= self.config.audio.min_volume:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user