mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Formatting
This commit is contained in:
parent
807cfec8b1
commit
8970520b0d
@ -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(audio.astype(np.float32) ** 2)))
|
||||
|
||||
# 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