function mfcc=wave2mfccInt(y, fs, nbits) % wave2mfccInt: Fixed-point MFCC computation by calling an external executable %[y, fs, nbits]=wavRead('d:\dataSet\【資策會】語者辨識/女1/去睡覺1.wav'); tempWaveFile=[tempname, '.wav']; if max(abs(y))>1 y=y/(2^nbits/2); end wavwrite(y, fs, nbits, tempWaveFile); currDir=pwd; cd('c/gmmInt') if exist('feature.mfcc'), delete('feature.mfcc'); end cmd=['wave2mfccIntC.exe ', tempWaveFile, ' MFCC feature.mfcc']; [status, result]=dos(cmd); if ~exist('feature.mfcc') fprintf('%s\n', result); error('Error in generating feature.mfcc!'); end mfcc=feaRead('feature.mfcc'); cd(currDir);