ailiaSpeechOpenModelFileW method

int ailiaSpeechOpenModelFileW(
  1. Pointer<AILIASpeech> net,
  2. Pointer<WChar> encoder_path,
  3. Pointer<WChar> decoder_path,
  4. int model_type
)

Set models into a network instance.

Parameters:

  • net: A network instance pointer
  • encoder_path: The path name to the onnx file (UTF16)
  • decoder_path: The path name to the onnx file (UTF16)
  • model_type: AILIA_SPEECH_MODEL_TYPE_*
  • task: AILIA_SPEECH_TASK_*
  • flag: OR of AILIA_SPEECH_FLAG_*

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 ailiaSpeechOpenModelFileW(
  ffi.Pointer<AILIASpeech> net,
  ffi.Pointer<ffi.WChar> encoder_path,
  ffi.Pointer<ffi.WChar> decoder_path,
  int model_type,
) {
  return _ailiaSpeechOpenModelFileW(
    net,
    encoder_path,
    decoder_path,
    model_type,
  );
}