silero-vad

We support only silero-vad v4 in sherpa-ncnn.

sherpa-ncnn-silero-vad

This model is converted from silero-vad v4 using scripts from

Download the model

cd /path/to/sherpa-ncnn

wget https://github.com/k2-fsa/sherpa-ncnn/releases/download/models/sherpa-ncnn-silero-vad.tar.bz2
tar xvf sherpa-ncnn-silero-vad.tar.bz2
rm sherpa-ncnn-silero-vad.tar.bz2
ls -lh sherpa-ncnn-silero-vad/

total 640
-rw-r--r--  1 fangjun  staff   247B Aug 17  2024 README.md
-rw-r--r--  1 fangjun  staff   305K Aug 17  2024 silero.ncnn.bin
-rw-r--r--  1 fangjun  staff   5.2K Aug 17  2024 silero.ncnn.param

C++ examples

URL

Remove silences from a file

sherpa-ncnn-vad.cc

VAD + microphone to record speeches

sherpa-ncnn-vad-microphone.cc

VAD + ASR

sherpa-ncnn-vad-microphone-offline-asr.cc

VAD + real-time ASR

sherpa-ncnn-vad-microphone-simulated-streaming-asr.cc

Please read the help info in the above example files for usages.