stream-vad-small

A small streaming voice activity detector: 16 kHz audio in, a speech probability for every 10 ms frame out. 207k parameters, 1.1 MB ONNX (605 KB int8), zero lookahead, CPU only. Apache-2.0.

stream-vad-small Silero VAD (silero-vad 6.3, default ONNX)
LibriVAD test-clean, 9 noise types Γ— 6 SNRs (ROC-AUC) 0.931 0.922
AVA-Speech, film audio (ROC-AUC) 0.911 0.920
ONNX size 1.1 MB, 207k params (int8 605 KB) 2.2 MB (silero_vad.onnx)
Speed, 1 CPU thread (ARM, NVIDIA GB10 host) 436Γ— real time (30 ms chunks) 504Γ— real time (32 ms chunks)

Where it is better: noisy speech. On LibriVAD it beats Silero in every one of the 9 noise types and at every SNR from βˆ’5 to 20 dB, with the largest margins in the hardest conditions (speech-shaped noise 0.923 vs 0.884; βˆ’5 dB 0.840 vs 0.817).

Where it is worse: real film and TV audio. On AVA-Speech it is 0.009 AUC behind Silero. If your audio is mostly movies, broadcast or music-heavy content, Silero is still the safer choice.

Usage

# pip install onnxruntime soundfile numpy ; then download stream-vad-small.onnx and example.py from this repo
from example import StreamVAD, segments
import soundfile as sf, numpy as np

x, sr = sf.read("audio.wav", dtype="float32")          # 16 kHz mono
vad = StreamVAD("stream-vad-small.onnx")
probs = np.concatenate([vad(x[i:i + 480]) for i in range(0, len(x) - 479, 480)])   # 30 ms chunks, as a live stream
print(segments(probs))                                  # [(start_s, end_s), ...]

The ONNX graph is stateful but pure: each call takes audio (any multiple of 160 samples) plus four state tensors and returns probabilities plus the new state. Chunked streaming gives the same output as running the whole file at once (max difference 1e-7). example.py has a 40-line wrapper and a hysteresis segmenter (on 0.5 / off 0.35, min speech 250 ms, min silence 300 ms); tune the thresholds for your use case.

Evaluation

All numbers are frame-level ROC-AUC / average precision, scored at Silero's native 32 ms resolution (512-sample chunks, the causal frame at the end of each chunk) so both models are compared on the same frames. Neither test set was used for training.

LibriVAD (test-clean small test, generated with the authors' scripts; 9 noise types Γ— SNR βˆ’5…20 dB; labels from forced alignment):

ours AUC Silero AUC ours AP Silero AP
all 0.931 0.922 0.986 0.984
babble 0.821 0.809 0.956 0.953
city 0.938 0.934 0.988 0.987
domestic 0.963 0.958 0.993 0.991
nature 0.965 0.961 0.993 0.992
office 0.964 0.960 0.993 0.992
public 0.922 0.916 0.984 0.983
speech-shaped noise 0.923 0.884 0.985 0.978
street 0.948 0.945 0.990 0.989
transport 0.967 0.961 0.994 0.992
SNR βˆ’5 dB 0.840 0.817 0.958 0.955
SNR 0 dB 0.902 0.894 0.977 0.975
SNR 5 dB 0.936 0.928 0.987 0.984
SNR 10 dB 0.956 0.949 0.991 0.990
SNR 15 dB 0.964 0.959 0.993 0.992
SNR 20 dB 0.968 0.963 0.994 0.993

AVA-Speech (film audio, utterance-level labels): ours 0.911 AUC / 0.927 AP; Silero 0.920 / 0.934.

VoxConverse dev (YouTube debates and news, labels = union of speaker turns): ours 0.979 / 0.998; Silero 0.965 / 0.997. Caveat: we trained on the VoxConverse test split (different videos), so this set is in-domain for us; read it as a dev score, not an independent test.

int8 (dynamic quantisation) matches fp32: AVA 0.911, LibriVAD 0.932.

How these test sets were used, plainly: VoxConverse dev was used to choose the training recipe and checkpoint. Before we had it, we compared four earlier training recipes on AVA and LibriVAD, so those two numbers are mildly optimistic.

Model

  • Front end: fixed 256-point DFT implemented as a strided convolution (no STFT op, exports cleanly), 40 log-mel bands, BatchNorm.
  • Two causal 1-D convolutions (kernel 5, 128 channels), one GRU (128), linear head. No lookahead: frame t depends only on audio up to the end of frame t.
  • Weights are the uniform average of 21 checkpoints (steps 10k–30k) of one training run.

Training data

Trained from scratch, 30k steps, batch 64 Γ— 8 s windows, AdamW with a one-cycle schedule.

  • Synthetic mixtures (70% of windows): clean speech placed on noise, music or silence beds at βˆ’5…20 dB SNR, with reverb (30%), telephone band-limiting / mu-law (20%), random gain. Labels come from the clean speech energy (pauses < 200 ms filled).
    • Speech: FLEURS train split (CC BY 4.0) in 13 Indian languages (hi, bn, ta, te, mr, gu, kn, ml, pa, ur, or, as, ne) + English; MUSAN speech (CC BY 4.0).
    • Noise / music: MUSAN noise and music (CC BY 4.0); RIRS_NOISES noises and room impulse responses (Apache-2.0). 10% of noise and RIR files were held out for evaluation.
  • Real audio (30% of windows): 8 s windows from the VoxConverse test split (CC BY 4.0, 43.5 h; via diarizers-community/voxconverse; copyright of the audio remains with the original video owners), labelled from its speaker-turn annotations. Half of these windows get extra noise or music (5–25 dB below the clip) and/or reverb.

Limitations

  • Behind Silero on film / TV audio (AVA-Speech, βˆ’0.009 AUC).
  • Trained on 13 Indian languages + English synthetic mixtures, but every real-audio test above is mostly English; we have no labelled real-world test for Indian languages yet, so we make no claim there.
  • Background babble was never trained as non-speech, so expect crowd chatter to be detected as speech; babble is also its weakest LibriVAD condition (0.821). It is not a target-speaker detector.
  • 16 kHz only. Resample other rates first.
  • Speed numbers are from one ARM machine; your CPU will differ.

License

Apache-2.0 for the weights and code. Training data licences are listed above (all permit this use; CC BY datasets are credited here).

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support