ailiaSpeechSetText method
- Pointer<
AILIASpeech> net, - Pointer<
AILIASpeechText> text, - int version,
- int idx
Set postprocess text
Parameters:
net: A network instance pointertext: Textversion: AILIA_SPEECH_TEXT_VERSIONidx: 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,
);
}