Decibri ships two VAD implementations built in. No cloud API, no extra install, no separate model download.
{ vad: 'energy' }.{ vad: '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 { Microphone } = require('decibri');
// Default RMS detector. Fast, clean-audio use cases.
const micRms = new Microphone({ vad: 'energy' });
// Silero neural model. Better accuracy under noise / music / multi-speaker.
const micSilero = new Microphone({ vad: 'silero' });
// Both emit the same events.
micSilero.on('speech', () => console.log('[speech start]'));
micSilero.on('silence', () => console.log('[speech end]'));
VAD configuration options (vad, vadThreshold, vadHoldoff, modelPath) are documented in the Node.js API reference.