ailiaSpeechCreate method

int ailiaSpeechCreate(
  1. Pointer<Pointer<AILIASpeech>> net,
  2. int env_id,
  3. int num_thread,
  4. int memory_mode,
  5. int task,
  6. int flags,
  7. AILIASpeechApiCallback callback,
  8. int version
)

Creates a network instance.

Parameters:

  • net: A pointer to the network instance pointer
  • env_id: The ID of the inference backend used for computation (obtained by ailiaGetEnvironment() ). It is selected automatically if AILIA_ENVIRONMENT_ID_AUTO is specified.
  • num_thread: The upper limit on the number of threads (It is set automatically if AILIA_MULTITHREAD_AUTO
  • memory_mode: The memory mode (AILIA_MEMORY_MODE_*)
  • task: AILIA_SPEECH_TASK_*
  • flag: OR of AILIA_SPEECH_FLAG_*
  • api_callback: The callback for ailia API
  • version: AILIA_SPEECH_API_CALLBACK_VERSION

Returns:

If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Creates a network instance.

Implementation

int ailiaSpeechCreate(
  ffi.Pointer<ffi.Pointer<AILIASpeech>> net,
  int env_id,
  int num_thread,
  int memory_mode,
  int task,
  int flags,
  AILIASpeechApiCallback callback,
  int version,
) {
  return _ailiaSpeechCreate(
    net,
    env_id,
    num_thread,
    memory_mode,
    task,
    flags,
    callback,
    version,
  );
}