dspavankumar / compute-mfcc

A simple MFCC extractor using C++ STL and C++11
GNU General Public License v3.0
116 stars 34 forks source link

comparison with librosa #6

Open aashish-kumar opened 4 years ago

aashish-kumar commented 4 years ago

Hi,

I was trying to compare your mfcc w.r.t librosa mfcc and I found lot of difference. Here are my arguments for librosa. I was able to match the other arguments to generate same feature maps but the values were very different and not just scaled versions. k = librosa.feature.mfcc(y,sr,window="hamming",center=False) Can you please help?

Thanks

dspavankumar commented 4 years ago

Hi Aashish,

MFCC implementations can be a lot different. Mine closely follows that of HTK; I am not aware of how exactly librosa implements it. Some general implementation differences are:

So MFCCs given by two toolkits are usually different; it's mostly to do with the convention followed by the research lab that developed it. And there is no clear answer to which one is better across all the applications. Hope this helps.

Pavan.