How to extract MFCC feature for audio files in the folder?

1 view (last 30 days)
Hello everyone, please below is the code that i am using to extract MFCC features. My expectation is to have each file with it mfcc numbers. The numbers of rows correspond to audio files and column to features dimension, or vice versa . But when i use this code, it gives me different result, for example if i try to extract the folder of 97 audio wav files, the result i get contains perhaps 171 rows and 14 columns. Please anyone can help with this issue by helping me to modify the code for it to work properly or by giving a similar code; which will help me too much. Please thank you again
  • The code:
file = dir (''E:\M02_wav\*wav\*.wav');
M= length (file)
for k = 1:M
[speech,Fs]= audioread(fullfile('E:\M02_wav\*wav\',file(k).name));
% cepstral extraction
[coeffs,delta,deltaDelta] = mfcc(speech,Fs)
csvwrite ('cepstral_extraction08.csv',coeffs);
end

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!