Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
SileroVAD
Abstract base class for voice activity detection providers. Implementations analyze audio to detect speech and silence boundaries and may emit'error' and 'info' events.
Constructor
Speech probability threshold above which audio is treated as speech.
Minimum duration, in seconds, required to confirm a speech segment.
Minimum duration, in seconds, required to confirm a silence segment.
Sample rate of the input audio, in Hz.
aclose
emit
The event to emit.
flush
off
The event the handler was registered for.
The handler to remove.
on
callback is omitted.
The event to listen for.
The handler to invoke when the event is emitted. If
None, a decorator is returned that registers the decorated function.The registered callback when
callback is provided, otherwise a decorator that registers and returns the function it wraps.on_vad_event
An async callable that receives each
VADResponse.process_audio
Raw audio bytes to analyze.