Forgot reset

This commit is contained in:
Michael Hansen
2023-12-08 14:06:16 -06:00
parent 71c7a00811
commit 7001994d68
+1
View File
@@ -904,6 +904,7 @@ class SileroVad:
if audio_bytes is None:
# Reset
self._activation = 0
self.detector.reset()
return False
if self.detector(audio_bytes) >= self.threshold: