Does model have state? #572
-
I'm using silero-vad(v3) for streaming, serve model with aiohttp server. When I initialize model at every request, vad process works properly.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Yes, it does, the VAD considers previous chunks. State reset in ONNX wrapper, for example: silero-vad/src/silero_vad/utils_vad.py Lines 46 to 50 in 102e6d0
The state should be reset each time the audio stream changes or ends. Also for your use-case, you may find this discussion thread useful - #570 (comment) |
Beta Was this translation helpful? Give feedback.
Yes, it does, the VAD considers previous chunks.
State reset in ONNX wrapper, for example:
silero-vad/src/silero_vad/utils_vad.py
Lines 46 to 50 in 102e6d0
The state should be reset each time the audio stream changes or ends.
Also for your use-case, you may find this discussion thread useful - #570 (comment)