How to extract MFCC feature for audio files in the folder?
7 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!