ailiaSpeechOpenModelFileA method

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

~japanese @brief モデルを指定します。(MBSC) @param net ネットワークオブジェクトポインタ @param encoder_path onnxファイルのパス名(MBSC) @param decoder_path onnxファイルのパス名(MBSC) @param model_type AILIA_SPEECH_MODEL_TYPE_* @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 (MBSC) @param decoder_path The path name to the onnx file (MBSC) @param model_type AILIA_SPEECH_MODEL_TYPE_* @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise.

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