ailiaSpeechSetText method

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

~japanese @brief ポストプロセス対象のテキストを設定します。 @param net ネットワークオブジェクトポインタ @param text テキスト @param version AILIA_SPEECH_TEXT_VERSION @param idx テキストのインデックス @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details 音声認識を使用せず、ポストプロセスのみを使用する場合に使用します。 文字列は内部バッファにコピーされるため、呼び出し後に解放することができます。 idxがailiaSpeechGetTextCountよりも大きい場合、自動的に内部バッファが拡張されます。

~english @brief Set postprocess text @param net A network instance pointer @param text Text @param version AILIA_SPEECH_TEXT_VERSION @param idx Text index @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details 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,
  );
}