Silero-VAD V6 in C++ (based on LibTorch)
This is the source code for Silero-VAD V6 in C++, utilizing LibTorch & Onnxruntime. You should compare its results with the Python version. Results at 16 and 8kHz have been tested. Batch and CUDA inference options are deprecated.
Requirements
GCC 11.4.0 (GCC >= 5.1)
Onnxruntime 1.11.0 (other versions are also acceptable)
LibTorch 1.13.0 (other versions are also acceptable)
Download LibTorch
Compilation
Optional Compilation Flags
-DUSE_TORCH -DUSE_ONNX
Run the Program
To run the program, use the following command:
./silero <sample.wav> <SampleRate> <threshold> ./silero aepyx.wav 16000 0.5 ./silero aepyx_8k.wav 8000 0.5
The sample file aepyx.wav is part of the Voxconverse dataset. File details: aepyx.wav is a 16kHz, 16-bit audio file. File details: aepyx_8k.wav is a 8kHz, 16-bit audio file.