comparison Code/Descriptors/Matlab/Speech/calculate_MFCC.m @ 4:92ca03a8fa99 tip

Update to ICASSP 2013 benchmark
author Dawn Black
date Wed, 13 Feb 2013 11:02:39 +0000
parents
children
comparison
equal deleted inserted replaced
3:e1cfa7765647 4:92ca03a8fa99
1 function [ceps] = calculate_MFCC( x, fs, frameLength, noOfFrames )
2
3 % sampleFileName = sampleWavFileName( 1 : length( sampleWavFileName ) - 4 );
4 % fileName = [ sampleFileName '_MFCC.txt'];
5 % fileID = fopen( fileName, 'w');
6 %
7 % raw = x(:,1);
8
9 [ceps,freqresp,fb,fbrecon,freqrecon] = mfcc( x, fs, fs/frameLength );
10
11
12 % noOfValidFrames = length(ceps);
13
14 % for i = 1 : noOfValidFrames
15 % fprintf(fileID,'%d ',i);
16 % for j = 1: 13 % get's the first 13 MFCC's
17 % fprintf(fileID, '%f ', ceps(j,i));
18 % end
19 % fprintf(fileID, '\n');
20 % end
21 %
22 % fclose( fileID );