ewan-xu / LibrosaCpp

LibrosaCpp is a c++ implemention of librosa to compute short-time fourier transform coefficients,mel spectrogram or mfcc
Apache License 2.0
187 stars 46 forks source link

The running time consuming so long!! Plz help! #10

Open SteveTanggithub opened 1 year ago

SteveTanggithub commented 1 year ago

my config: n_mel=128,n_fft=2048,n_hop=256,sr=16000 it takes about 20 second for getting melspectrogram from 8 second long wav file!!! Is it normal for this code?

ewan-xu commented 1 year ago

eigen fft is too slow. You can replace with other fft . e.g. fftw.

SteveTanggithub commented 1 year ago

i don't know how to use, can u help me? by the way, it also takes too long (17s) when i use eigen for matrix multiply. (128,1025) x (1025,501)