Views
No views yet
silero_vad_fp16.sentis
SileroVad.cs # self-contained Unity Sentis inferenceh/c, and returns a
speech probability plus the updated state. Carry h/c across frames; clear them to reset.SileroVad.cs (frame buffering,
LSTM state carry, start/end thresholding with a silence timeout, SpeechStarted/SpeechEnded events).
Minimal usage:1var vad = new SileroVad(BackendType.CPU);
2vad.Load(modelRoot); // folder holding silero_vad_fp16.sentis
3vad.SpeechStarted += () => { /* ... */ };
4vad.StartListening();
5// each frame: push 16 kHz mono samples, then drain
6vad.PushSamples(micSamples, micSampleCount);
7vad.Pump(); // call regularly (e.g. once per frame)