/// <summary> /// Closes the ongoing streaming inference, returns the STT result over the whole audio signal, including metadata. /// </summary> /// <param name="stream">Instance of the stream to finish.</param> /// <param name="aNumResults">Maximum number of candidate transcripts to return. Returned list might be smaller than this.</param> /// <returns>The extended metadata result.</returns> public unsafe Metadata FinishStreamWithMetadata(DeepSpeechStream stream, uint aNumResults) { return(NativeImp.DS_FinishStreamWithMetadata(stream.GetNativePointer(), aNumResults).PtrToMetadata()); }
/// <summary> /// Closes the ongoing streaming inference, returns the STT result over the whole audio signal. /// </summary> /// <returns>The extended metadata. The user is responsible for freeing the struct.</returns> public unsafe Models.Metadata FinishStreamWithMetadata() { return(NativeImp.DS_FinishStreamWithMetadata(_streamingStatePP).PtrToMetadata()); }