code: def stop(self):
          
          err = _pa.Pa_StopStream(self._stream)
          if err == _pa.paStreamIsStopped:
              return
          self._handle_error(err)
docs: Terminate audio processing.
  
          This waits until all pending audio buffers have been played
          before it returns. If successful, the stream is considered
          inactive.