title: How can I extract mfcc features for audio and pass it to the cnn to train the model?
body: <p>How can I extract audio features using MFCC algorithm and use it with the Convolutional Neural Network to train the model?</p>
  
  <p>I have extracted features of audio using MFCC and the file contained floating point columns but I am unable to distinguish between the columns?</p>
  
  <pre><code>for filename in os.listdir(directoryName):
      if filename.endswith('.wav'): # only get MFCCs from .wavs
  
          (rate,sig) = wav.read(directoryName + "/" +filename)
  
  
          mfcc_feat = mfcc(sig,rate)
  
  
          fbank_feat = logfbank(sig,rate)
  
  
          outputFile = resultsDirectory + "/" + os.path.splitext(filename)[0] + ".csv"
          file = open(outputFile, 'w+')
          numpy.savetxt(file, fbank_feat, delimiter=",")
          file.close() # close file
  
  The values contained in the csv file like this.
  
  7.01E+00    5.94E+00    5.28E+00    5.25E+00    5.24E+00
  5.87E+00    3.53E+00    3.61E+00    2.32E+00    2.13E+00
  5.68E+00    8.36E-01    1.75E-01    -8.48E-01   1.77E+00
  7.96E+00    6.12E+00    5.47E+00    4.66E+00    4.34E+00
  6.29E+00    4.34E+00    3.51E+00    3.15E+00    2.30E+00
  6.37E+00    5.34E+00    4.76E+00    3.98E+00    3.77E+00
  4.72E+00    1.62E+00    3.09E+00    1.66E+00    1.37E+00
  6.14E+00    5.82E+00    5.12E+00    4.11E+00    3.76E+00
  7.49E+00    3.79E+00    2.25E+00    5.03E+00    5.69E+00
  5.89E+00    4.88E+00    5.88E+00    6.22E+00    6.19E+00
  </code></pre>