create static method

VadHandlerBase create({
  1. required bool isDebug,
  2. String modelPath = 'packages/vad/assets/models/silero_vad.onnx',
})

Create a new instance of VadHandler isDebug flag modelPath path to the model file (optional and only used for non-web) Default model path is 'packages/vad/assets/models/silero_vad.onnx' Returns a new instance of VadHandlerBase

Implementation

static VadHandlerBase create(
    {required bool isDebug,
    String modelPath = 'packages/vad/assets/models/silero_vad.onnx'}) {
  return implementation.createVadHandler(
      isDebug: isDebug, modelPath: modelPath);
}