ailiaSpeechOpenModelFileW method

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

~japanese @brief モデルを指定します。(UTF16) @param net ネットワークオブジェクトポインタ @param encoder_path onnxファイルのパス名(UTF16) @param decoder_path onnxファイルのパス名(UTF16) @param model_type AILIA_SPEECH_MODEL_TYPE_* @param task AILIA_SPEECH_TASK_* @param flag AILIA_SPEECH_FLAG_*の論理和 @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。

~english @brief Set models into a network instance. @param net A network instance pointer @param encoder_path The path name to the onnx file (UTF16) @param decoder_path The path name to the onnx file (UTF16) @param model_type AILIA_SPEECH_MODEL_TYPE_* @param task AILIA_SPEECH_TASK_* @param flag OR of AILIA_SPEECH_FLAG_* @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise.

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,
  );
}