ailiaSpeechCreate method
- Pointer<
Pointer< net,AILIASpeech> > - int env_id,
- int num_thread,
- int memory_mode,
- int task,
- int flags,
- AILIASpeechApiCallback callback,
- int version
Creates a network instance.
Parameters:
net: A pointer to the network instance pointerenv_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_AUTOmemory_mode: The memory mode (AILIA_MEMORY_MODE_*)task: AILIA_SPEECH_TASK_*flag: OR of AILIA_SPEECH_FLAG_*api_callback: The callback for ailia APIversion: 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,
);
}