title: audio buffer with librosa
body: <p>In the following code I created a buffer which holds 10 frames of an audio file in each loop iteration. </p>
  
  <pre><code>import collections
  import librosa
  import wave
  my_buffer = collections.deque(maxlen=10)
  f = wave.open('Desktop/0963.wav',"rb")
  num_frames = f.getnframes()
  for frame in range(num_frames):
     my_buffer.append(f.readframes(frame))
  </code></pre>
  
  <p>Out of the buffer, I need to get a numpy array representing audio amplitude of each sample point with librosa. Any idea?</p>