Function deepspeech_sys::DS_DiscardStream
source · pub unsafe extern "C" fn DS_DiscardStream(aSctx: *mut StreamingState)
Expand description
@brief Destroy a streaming state without decoding the computed logits. This can be used if you no longer need the result of an ongoing streaming inference and don’t want to perform a costly decode operation.
@param aSctx A streaming state pointer returned by {@link DS_SetupStream()}.
@note This method will free the state pointer (@p aSctx).