ailiaSpeechSetText method

int ailiaSpeechSetText(
  1. Pointer<AILIASpeech> net,
  2. Pointer<AILIASpeechText> text,
  3. int version,
  4. int idx
)

Set postprocess text

Parameters:

  • net: A network instance pointer
  • text: Text
  • version: AILIA_SPEECH_TEXT_VERSION
  • idx: Text index

Returns:

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

Used when using only post-processing without using speech recognition. Since the string is copied to the internal buffer, it can be released after the call. If idx is larger than ailiaSpeechGetTextCount, the internal buffer will be automatically expanded.

Implementation

int ailiaSpeechSetText(
  ffi.Pointer<AILIASpeech> net,
  ffi.Pointer<AILIASpeechText> text,
  int version,
  int idx,
) {
  return _ailiaSpeechSetText(
    net,
    text,
    version,
    idx,
  );
}