class_docstr: A Stream handles live (i.e. online, real-time) audio input via PyAudio.
  
  Parameters
  ----------
  sample_rate : int
      Sample rate of the signal.
  num_channels : int, optional
      Number of channels.
  dtype : numpy dtype, optional
      Data type for the signal.
  frame_size : int, optional
      Size of one frame [samples].
  hop_size : int, optional
      Progress `hop_size` samples between adjacent frames.
  fps : float, optional
      Use given frames per second; if set, this computes and overwrites the
      given `hop_size` value (the resulting `hop_size` must be an integer).
  stream_input_device : int, optional
      PyAudio device index of the desired input device.
  queue_size : int
      Size of the FIFO (first in first out) queue. If the queue is full and
      new audio samples arrive, the oldest item in the queue will be dropped.
  
  Notes
  -----
  Stream is implemented as an iterable which blocks until enough new data is
  available.
class_docstr_tok: ["A","Stream","handles","live","(","i.e",".","online",",","real-time",")","audio","input","via","PyAudio",".","Parameters","--","--","--","--","--","sample_rate",":","int","Sample","rate","of","the","signal",".","num_channels",":","int",",","optional","Number","of","channels",".","dtype",":","numpy","dtype",",","optional","Data","type","for","the","signal",".","frame_size",":","int",",","optional","Size","of","one","frame","[","samples","]",".","hop_size",":","int",",","optional","Progress","`","hop_size","`","samples","between","adjacent","frames",".","fps",":","float",",","optional","Use","given","frames","per","second",";","if","set",",","this","computes","and","overwrites","the","given","`","hop_size","`","value","(","the","resulting","`","hop_size","`","must","be","an","integer",")",".","stream_input_device",":","int",",","optional","PyAudio","device","index","of","the","desired","input","device",".","queue_size",":","int","Size","of","the","FIFO","(","first","in","first","out",")","queue",".","If","the","queue","is","full","and","new","audio","samples","arrive",",","the","oldest","item","in","the","queue","will","be","dropped",".","Notes","--","--","-","Stream","is","implemented","as","an","iterable","which","blocks","until","enough","new","data","is","available","."]
code: def close(self):
      self.stream.close()
      # TODO: is this the correct place to terminate PyAudio?
      self.pa.terminate()
  
imports: from __future__ import absolute_import, division, print_function
  import warnings
  import numpy
  from ..processors import BufferProcessor, Processor
  from ..utils import integer_types
label_desc: Use image node_id 5 for calling the Stream obj's underlying member method code with example usage: obj.close() without return types