ailiaVoiceCreate method

int ailiaVoiceCreate(
  1. Pointer<Pointer<AILIAVoice>> net,
  2. int env_id,
  3. int num_thread,
  4. int memory_mode,
  5. int flags,
  6. AILIAVoiceApiCallback callback,
  7. int version
)

~japanese @brief ボイスオブジェクトを作成します。 @param net ボイスオブジェクトポインタへのポインタ @param env_id 計算に利用する推論実行環境のID( ailiaGetEnvironment() で取得) \ref AILIA_ENVIRONMENT_ID_AUTO にした場合は自動で選択する @param num_thread スレッド数の上限( \ref AILIA_MULTITHREAD_AUTO にした場合は自動で設定) @param memory_mode メモリモード(AILIA_MEMORY_MODE_*) @param flag AILIA_VOICE_FLAG_*の論理和 @param api_callback ailiaのAPIへのコールバック @param version AILIA_VOICE_API_CALLBACK_VERSION @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details ボイスオブジェクトを作成します。

~english @brief Creates a Voice instance. @param net A pointer to the Voice instance pointer @param env_id The ID of the inference backend used for computation (obtained by ailiaGetEnvironment() ). It is selected automatically if \ref AILIA_ENVIRONMENT_ID_AUTO is specified. @param num_thread The upper limit on the number of threads (It is set automatically if \ref AILIA_MULTITHREAD_AUTO @param memory_mode The memory mode (AILIA_MEMORY_MODE_) @param flag OR of AILIA_VOICE_FLAG_ @param api_callback The callback for ailia API @param version AILIA_VOICE_API_CALLBACK_VERSION is specified.) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details Creates a Voice instance.

Implementation

int ailiaVoiceCreate(
  ffi.Pointer<ffi.Pointer<AILIAVoice>> net,
  int env_id,
  int num_thread,
  int memory_mode,
  int flags,
  AILIAVoiceApiCallback callback,
  int version,
) {
  return _ailiaVoiceCreate(
    net,
    env_id,
    num_thread,
    memory_mode,
    flags,
    callback,
    version,
  );
}