class_docstr: Class wrapping a DeepSpeech stream. The constructor cannot be called directly.
  Use :func:`Model.createStream()`
docstr: Compute the final decoding of an ongoing streaming inference and return
  results including metadata. Signals the end of an ongoing streaming
  inference. The underlying stream object must not be used after this
  method is called.
  
  :param num_results: Maximum number of candidate transcripts to return. Returned list might be smaller than this.
  :type num_results: int
  
  :return: Metadata object containing multiple candidate transcripts. Each transcript has per-token metadata including timing information.
  :type: :func:`Metadata`
  
  :throws: RuntimeError if the stream object is not valid
docstr_tok: ["Compute","the","final","decoding","of","an","ongoing","streaming","inference","and","return","results","including","metadata",".","Signals","the","end","of","an","ongoing","streaming","inference",".","The","underlying","stream","object","must","not","be","used","after","this","method","is","called",".",":","param","num_results",":","Maximum","number","of","candidate","transcripts","to","return",".","Returned","list","might","be","smaller","than","this",".",":","type","num_results",":","int",":","return",":","Metadata","object","containing","multiple","candidate","transcripts",".","Each","transcript","has","per-token","metadata","including","timing","information",".",":","type",":",":","func",":","`","Metadata","`",":","throws",":","RuntimeError","if","the","stream","object","is","not","valid"]
code: def finishStreamWithMetadata(self, num_results=1):
      """
      Compute the final decoding of an ongoing streaming inference and return
      results including metadata. Signals the end of an ongoing streaming
      inference. The underlying stream object must not be used after this
      method is called.
  
      :param num_results: Maximum number of candidate transcripts to return. Returned list might be smaller than this.
      :type num_results: int
  
      :return: Metadata object containing multiple candidate transcripts. Each transcript has per-token metadata including timing information.
      :type: :func:`Metadata`
  
      :throws: RuntimeError if the stream object is not valid
      """
      if not self._impl:
          raise RuntimeError(
              "Stream object is not valid. Trying to finish an already finished stream?"
          )
      result = deepspeech.impl.FinishStreamWithMetadata(
          self._impl, num_results
      )
      self._impl = None
      return result
  
imports: import os
  import platform
  import deepspeech
  from deepspeech.impl import Version
label_desc: Use image node_id 7 for calling the Stream obj's underlying member method code with example usage: obj.finishStreamWithMetadata(num_results) and returns: result