Advertisement
mhdew

MFCC for single file

Apr 16th, 2020
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. import librosa
  2. import numpy as nmp
  3.  
  4. y,sr=librosa.load("/content/hard.wav")
  5. mfccs=librosa.feature.mfcc(y,sr=sr)
  6.  
  7. lst=list()
  8.  
  9. for i in mfccs:
  10.   lst.append(nmp.mean(i))
  11.  
  12. print(lst)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement