ailiaSpeechOpenVadFileA method
- Pointer<
AILIASpeech> net, - Pointer<
Char> vad_path, - int vad_type
Set vad model for voice activity detection.
Parameters:
net: A network instance pointervad_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,
);
}