ailiaSpeechSetIntermediateCallback method

int ailiaSpeechSetIntermediateCallback(
  1. Pointer<AILIASpeech> net,
  2. AILIA_SPEECH_USER_API_INTERMEDIATE_CALLBACK callback,
  3. Pointer<Void> handle
)

Set a callback to get intermediate results of recognition.

Parameters:

  • net: A network instance pointer
  • callback: callback
  • handle: handle for callback

Returns:

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

The return value does not have to be released. The string is valid until the next ailiaSpeech API function is called.

Implementation

int ailiaSpeechSetIntermediateCallback(
  ffi.Pointer<AILIASpeech> net,
  AILIA_SPEECH_USER_API_INTERMEDIATE_CALLBACK callback,
  ffi.Pointer<ffi.Void> handle,
) {
  return _ailiaSpeechSetIntermediateCallback(
    net,
    callback,
    handle,
  );
}