createFsmnVoiceActivityDetector(
config,runtime?):Promise<FsmnVoiceActivityDetector>
Defined in: extensions/speech/tasks/fsmnVoiceActivityDetection.ts:245
Creates a Voice Activity Detection runner for the FSMN-VAD model.
It loads the model, validates its input/output signature and registers a
disposal hook. The whole pipeline — feature extraction, chunked inference and
segment postprocessing — runs in TypeScript on top of the core model.execute
primitive.
VAD task configuration containing the model path and default options. See FsmnVadModel.
WorkletRuntime
Optional worklet runtime thread on which to run the model execution.
Promise<FsmnVoiceActivityDetector>
A promise resolving to the instantiated FsmnVoiceActivityDetector runner.
With code LOAD_FAILED if the model fails to
load, or SCHEMA_MISMATCH if the model schema does not match the VAD
specification.