Forgot reset
This commit is contained in:
@@ -904,6 +904,7 @@ class SileroVad:
|
|||||||
if audio_bytes is None:
|
if audio_bytes is None:
|
||||||
# Reset
|
# Reset
|
||||||
self._activation = 0
|
self._activation = 0
|
||||||
|
self.detector.reset()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if self.detector(audio_bytes) >= self.threshold:
|
if self.detector(audio_bytes) >= self.threshold:
|
||||||
|
|||||||
Reference in New Issue
Block a user