pub unsafe extern "C" fn STT_IntermediateDecodeFlushBuffers(
aSctx: *mut StreamingState,
) -> *mut c_char
Expand description
@brief EXPERIMENTAL: Compute the intermediate decoding of an ongoing streaming inference, flushing buffers first. This ensures that all audio that has been streamed so far is included in the result, but is more expensive than STT_IntermediateDecode() because buffers are processed through the acoustic model. Calling this function too often will also degrade transcription accuracy due to trashing of the LSTM hidden state vectors.
@param aSctx A streaming state pointer returned by {@link STT_CreateStream()}.
@return The STT result. The user is responsible for freeing the string using {@link STT_FreeString()}.
@note This method will free the state pointer (@p aSctx).