ailiaSpeechResetTranscribeState method

int ailiaSpeechResetTranscribeState(
  1. Pointer<AILIASpeech> net
)

~japanese @brief ネットワークオブジェクトの内部状態を初期化します。 @param net ネットワークオブジェクトポインタ @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details このAPIを呼び出すことで、前回のデコード結果などの内部状態を初期化します。 このAPIを呼び出した後、モデルを再び開く必要はありません。 ailiaSpeechOpenModelFile、ailiaSpeechSetIntermediateCallback、ailiaSpeechSetLanguage、ailiaSpeechSetSilentThreshold、ailiaSpeechSetPromptのステートは保持されます。

~english @brief It resets the network instance. @param net A network instance pointer @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details By calling this API, the internal state such as the previous decoding result is initialized. There is no need to reopen the model after calling this API. The states of ailiaSpeechOpenModelFile, ailiaSpeechSetIntermediateCallback, ailiaSpeechSetLanguage, ailiaSpeechSetSilentThreshold, ailiaSpeechSetPrompt are preserved.

Implementation

int ailiaSpeechResetTranscribeState(
  ffi.Pointer<AILIASpeech> net,
) {
  return _ailiaSpeechResetTranscribeState(
    net,
  );
}