pub unsafe extern "C" fn STT_IntermediateDecodeWithMetadataFlushBuffers(
aSctx: *mut StreamingState,
aNumResults: c_uint,
) -> *mut Metadata
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_IntermediateDecodeWithMetadata() 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. Returns results including metadata.
@param aSctx A streaming state pointer returned by {@link STT_CreateStream()}. @param aNumResults The number of candidate transcripts to return.
@return Metadata struct containing multiple candidate transcripts. Each transcript has per-token metadata including timing information. The user is responsible for freeing Metadata by calling {@link STT_FreeMetadata()}. Returns NULL on error.