title: Python Librosa : What is the default frame size used to compute the MFCC features?
body: <p>Using Librosa library, I generated the MFCC features of audio file 1319 seconds into a matrix <code>20 X 56829</code>. The <code>20</code> here represents the no of MFCC features (Which I can manually adjust it). But I don't know how it segmented the audio length into <code>56829</code>. What is the frame size it takes process the audio?</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  import librosa
  
  def getPathToGroundtruth(episode):
      """Return path to groundtruth file for episode"""
      pathToGroundtruth = "../../../season01/Audio/" \
                          + "Season01.Episode%02d.en.wav" % episode
      return pathToGroundtruth
  
  def getduration(episode):
      pathToAudioFile = getPathToGroundtruth(episode)
      y, sr = librosa.load(pathToAudioFile)
      duration = librosa.get_duration(y=y, sr=sr)
      return duration
  def getMFCC(episode):
      filename = getPathToGroundtruth(episode)
      y, sr = librosa.load(filename)  # Y gives 
      data = librosa.feature.mfcc(y=y, sr=sr)
      return data
  
  
  data = getMFCC(1)
  </code></pre>