code: def append_data(self, data_buffer):
          
  
          if len(data_buffer) % (self.sample_width * self.channels) != 0:
              raise ValueError("length of data_buffer must be a multiple of (sample_width * channels)")
  
          self._buffer += data_buffer
          self._left += len(data_buffer)
docs: Append data to this audio stream
  
          :Parameters:
  
              `data_buffer` : str, basestring, Bytes
                  a buffer with a length multiple of (sample_width * channels)