Decibri ships two VAD implementations built in. No cloud API, no extra install, no separate model download.
{ vad: true }. Defaults to vadMode: 'energy'.{ vad: true, vadMode: 'silero' }.Both run locally in Rust via ONNX Runtime. The Silero ONNX model (~2.3 MB) ships inside the decibri npm package. No separate download, no sherpa-onnx dependency.
const Decibri = require('decibri');
// Default RMS detector. Fast, clean-audio use cases.
const micRms = new Decibri({ vad: true });
// Silero neural model. Better accuracy under noise / music / multi-speaker.
const micSilero = new Decibri({ vad: true, vadMode: 'silero' });
// Both emit the same events.
micSilero.on('speech', () => console.log('[speech start]'));
micSilero.on('silence', () => console.log('[speech end]'));
VAD configuration options (vad, vadMode, vadThreshold, vadHoldoff, modelPath) are documented in the Node.js API reference.