ailiaSpeechOpenModelFileA method
Set models into a network instance.
Parameters:
net: A network instance pointerencoder_path: The path name to the onnx file (MBSC)decoder_path: The path name to the onnx file (MBSC)model_type: AILIA_SPEECH_MODEL_TYPE_*
Returns:
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
To run on the Qualcomm NPU (QNN), pass the same .qnn package as both encoder_path and decoder_path.
Implementation
int ailiaSpeechOpenModelFileA(
ffi.Pointer<AILIASpeech> net,
ffi.Pointer<ffi.Char> encoder_path,
ffi.Pointer<ffi.Char> decoder_path,
int model_type,
) {
return _ailiaSpeechOpenModelFileA(
net,
encoder_path,
decoder_path,
model_type,
);
}