pub unsafe extern "C" fn DS_FinishStreamWithMetadata(
    aSctx: *mut StreamingState,
    aNumResults: c_uint
) -> *mut Metadata
Expand description

@brief Compute the final decoding of an ongoing streaming inference and return results including metadata. Signals the end of an ongoing streaming inference.

@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.

@note This method will free the state pointer (@p aSctx).