Function deepspeech_sys::DS_IntermediateDecodeWithMetadata
source · [−]pub unsafe extern "C" fn DS_IntermediateDecodeWithMetadata(
aSctx: *const StreamingState,
aNumResults: c_uint
) -> *mut Metadata
Expand description
@brief Compute the intermediate decoding of an ongoing streaming inference, return results including metadata.
@param aSctx A streaming state pointer returned by {@link DS_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 DS_FreeMetadata()}. Returns NULL on error.