silero vad onnx
Overview
Highlights
- ONNX runtime compatibility for cross-platform deployment
- Low-latency speech detection with minimal CPU overhead
- Highly accurate noise rejection compared to energy-based VAD
- MIT licensed for flexible commercial integration
- Optimized for preprocessing in STT and VoIP pipelines
Usage
# Install Hugging Face transformers
pip install transformers torch
# Load model with transformers
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained("istupakov/silero-vad-onnx")
tokenizer = AutoTokenizer.from_pretrained("istupakov/silero-vad-onnx")
Hugging Face Download
We recommend downloading the model via the Hugging Face CLI or Hub SDK.
Guidance:Before downloading, install huggingface_hub with:
pip install -U huggingface_hub
CLI Download
Download the full repository
huggingface-cli download istupakov/silero-vad-onnx
Download a single file to a local folder (e.g. config.json into ./dir)
huggingface-cli download istupakov/silero-vad-onnx config.json --local-dir ./dir
See the official docs for more CLI options
SDK Download
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('istupakov/silero-vad-onnx')
Git Download
Make sure git-lfs is installed first
git lfs install
git clone https://huggingface.co/istupakov/silero-vad-onnx
To skip LFS large-file downloads, use:
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/istupakov/silero-vad-onnx
Model files are hosted on the Hugging Face Hub — download directly via HF CLI / SDK / Git, not through this site.
PyTorch / Transformers Usage
Install Transformers
pip install -U transformers torch
Load the model and run inference
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained('istupakov/silero-vad-onnx')
tokenizer = AutoTokenizer.from_pretrained('istupakov/silero-vad-onnx')
Full Documentation
---
license: mit
pipeline_tag: voice-activity-detection
tags:
- voice-activity-detection
- vad
- onnx
- onnx-asr
---
Silero VAD model (version 6.2) in ONNX format for onnx-asr.
Install onnx-asr
pip install onnx-asr[cpu,hub]Load Parakeet v3 ASR with Silero VAD and recognize wav file
import onnx_asr
vad = onnx_asr.load_vad("silero")
model = onnx_asr.load_model("nemo-parakeet-tdt-0.6b-v3").with_vad(vad)
for res in model.recognize("test.wav"):
print(res)