Skip to main content

vadonnx

Load arbitrary Voice Activity Detection models behind a single, unified API — every model runs through ONNX Runtime. One streaming/​batch interface, one audio-format story, pluggable models.

from vadonnx import load_vad

vad = load_vad("silero")                              # bundled, works fully offline
prob = vad.process_chunk(pcm_bytes)                   # streaming → float in [0, 1]
segments = vad.get_speech_segments(audio, sample_rate=16000)
# -> [SpeechSegment(start=0.32, end=2.27), SpeechSegment(start=3.27, end=4.45), ...]

Why

Every VAD ships its own loader, audio format, feature pipeline and state handling. vadonnx hides that behind one VADModel interface: feed it audio (raw int16 bytes, numpy arrays, any sample rate) and get back per-frame speech probabilities or ready-made speech segments. Models are described declaratively by an IOSignature, so a single generic engine drives most of them and you can point the same API at any custom .onnx file.

  • Lightweight runtime — only numpy, onnxruntime, huggingface_hub.
  • Offline by default — a small Silero model is bundled in the wheel.
  • Streaming and batch — process_chunk() for live audio, get_speech_segments() / probabilities() for whole buffers.
  • Bring your own model — load any ONNX VAD by path/URL with a signature.
  • Extensible — third parties register backends/models via entry points.

Install

uv pip install vadonnx          # runtime (numpy + onnxruntime + huggingface_hub)
uv pip install "vadonnx[mic]"   # + microphone examples

Models

name rate parity vs upstream notes
silero / silero-8k / silero-op15 16k / 8k / 16k MAE 0 bundled default, raw PCM
marblenet / marblenet-int8 16k MAE 4e-4 NVIDIA NeMo Frame-VAD, multilingual (license)
pyannote / pyannote-int8 16k MAE 0 pyannote segmentation-3.0, windowed
fsmn / fsmn-quant 16k tracks upstream FunASR FSMN-VAD; needs vadonnx[fsmn]
speechbrain 16k MAE 0 SpeechBrain CRDNN, LibriParty-trained
ten 16k — feature extractor provided by TEN's native library

See docs/backends.md for per-model detail and the benchmark for measured comparisons across datasets, including WebRTC and energy baselines.

Models other than the bundled Silero are downloaded on first use from the TigreGotico HuggingFace org and cached under $XDG_DATA_HOME/vadonnx. See docs/backends.md for per-model detail and parity notes.

CLI

vadonnx list                       # list available models
vadonnx probe silero               # print a model's ONNX input/output signature
vadonnx segment speech.wav         # print detected speech segments of a WAV

Documentation

License

Apache-2.0. Bundled/downloaded model weights retain their upstream licenses — see docs/licensing.md.

Metadata

Release files for vadonnx 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vadonnx 0.1.0
File Size Uploaded
vadonnx-0.1.0.tar.gz 2.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for vadonnx 0.1.0
File Interpreter ABI Platform
vadonnx-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 MB

Release files / vadonnx-0.1.0.tar.gz

Download URL vadonnx-0.1.0.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
6c250359aa260fc66aedd65fa26b78d45fea3112017ae7c8d31e02ffa5916442
BLAKE2b-256 checksum
How to use checksums
f49dc9db1aecbe5699a1a82fe9e8bbdc501087bf891fabf032fa1f5dbe038f92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / vadonnx-0.1.0-py3-none-any.whl

Download URL vadonnx-0.1.0-py3-none-any.whl
Size 2.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
453a12d3245be1cf518db8f79063483c6c5788e684905148be8543a0df2091b6
BLAKE2b-256 checksum
How to use checksums
5801db22801c1a3a55f0e9a732941c22a4005007865fb17aa5006e2c70797a40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page