coqui_stt_sys

Function STT_FinishStreamWithMetadata

Source
pub unsafe extern "C" fn STT_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 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.

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