home-assistant-libs / ha-ffmpeg

A python library that handling with ffmpeg for home-assistant
BSD 3-Clause "New" or "Revised" License
16 stars 13 forks source link

Should silence duration always be 1s? #29

Open celestinjr opened 4 years ago

celestinjr commented 4 years ago

The duration in line 52 of sensors.py is hard coded as 1 second. Should this line instead be the following, or is this by design?

command = ["-vn", "-filter:a", "silencedetect=n={}dB:d={}".format(self._peak, self._time_duration)]

Theple22 commented 4 years ago

What you want to do?