Signature
Parameters
Configuration options for the VAD context
Returns
A promise that resolves to a WhisperVadContext instance.
Example
Notes
- The VAD model file (Silero VAD) is separate from the Whisper model
- Download the Silero VAD model from the whisper.cpp repository or use a pre-converted
.binfile - GPU acceleration is currently only available on iOS devices with Metal support
- Always call
context.release()when finished to free memory - Use
releaseAllWhisperVad()to release all VAD contexts at once
Related
- WhisperVadContext - Methods for detecting speech
- VadOptions - Options for speech detection
- releaseAllWhisperVad - Release all VAD contexts