waveDir='D:\dataset\[techine]\第一次錄音檔(100人)\莊美玲#0'; waveData=recursiveFileList(waveDir, 'wav'); waveNum=length(waveData); for i=1:waveNum fprintf('%d/%d: %s\n', i, waveNum, waveData(i).path); [y, fs, nbits]=wavReadInt(waveData(i).path); sound(y/(2^nbits/2), fs); epdParam=epdParamSet(fs); plotOpt=1; % out=epdByVol(y, fs, nbits, epdParam, plotOpt); out=epdByVolHod(y, fs, nbits, epdParam, plotOpt); fprintf('Press any key to conitnue...'); pause; fprintf('\n'); end