ailiaSpeechOpenVadFileA method

int ailiaSpeechOpenVadFileA(
  1. Pointer<AILIASpeech> net,
  2. Pointer<Char> vad_path,
  3. int vad_type
)

Set vad model for voice activity detection.

Parameters:

  • net: A network instance pointer
  • vad_path: The path name to the onnx file (MBSC)
  • vad_type: AILIA_SPEECH_VAD_TYPE_*

Returns:

If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

To enable VAD, you need to set the detection threshold using ailiaSpeechSetSilentThreshold.

Implementation

int ailiaSpeechOpenVadFileA(
  ffi.Pointer<AILIASpeech> net,
  ffi.Pointer<ffi.Char> vad_path,
  int vad_type,
) {
  return _ailiaSpeechOpenVadFileA(
    net,
    vad_path,
    vad_type,
  );
}