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
  the result. Signals the end of an ongoing streaming inference. The underlying
  stream object must not be used after this method is called.
  
  :return: The STT result.
  :type: str
  
  :throws: RuntimeError if the stream object is not valid
docstr_tok: ["Compute","the","final","decoding","of","an","ongoing","streaming","inference","and","return","the","result",".","Signals","the","end","of","an","ongoing","streaming","inference",".","The","underlying","stream","object","must","not","be","used","after","this","method","is","called",".",":","return",":","The","STT","result",".",":","type",":","str",":","throws",":","RuntimeError","if","the","stream","object","is","not","valid"]
code: def finishStream(self):
      """
      Compute the final decoding of an ongoing streaming inference and return
      the result. Signals the end of an ongoing streaming inference. The underlying
      stream object must not be used after this method is called.
  
      :return: The STT result.
      :type: str
  
      :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.FinishStream(self._impl)
      self._impl = None
      return result
  
imports: import os
  import platform
  import deepspeech
  from deepspeech.impl import Version
label_desc: Use image node_id 6 for calling the Stream obj's underlying member method code with example usage: obj.finishStream() and returns: result