Function: createFsmnVoiceActivityDetector()
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.
Parameters
config
VAD task configuration containing the model path and default options. See FsmnVadModel.
runtime?
any
Optional worklet runtime thread on which to run the model execution.
Returns
Promise<FsmnVoiceActivityDetector>
A promise resolving to the instantiated FsmnVoiceActivityDetector runner.
Throws
With code LOAD_FAILED if the model fails to
load, or SCHEMA_MISMATCH if the model schema does not match the VAD
specification.