/// <summary>
 /// Computes the intermediate decoding of an ongoing streaming inference, including metadata.
 /// </summary>
 /// <param name="stream">Instance of the stream to decode.</param>
 /// <param name="aNumResults">Maximum number of candidate transcripts to return. Returned list might be smaller than this.</param>
 /// <returns>The STT intermediate result.</returns>
 public unsafe Metadata IntermediateDecodeWithMetadata(DeepSpeechStream stream, uint aNumResults)
 {
     return(NativeImp.DS_IntermediateDecodeWithMetadata(stream.GetNativePointer(), aNumResults).PtrToMetadata());
 }