0001 waveDir='\users\jang\app\asr\source\data\errorFile'; 0002 waveDir='\users\jang\app\asr\source\data\errorFile\wrongFA'; 0003 waveDir='D:\users\jang\app\asr\source\data\errorFile\多aa的音'; 0004 waveDir='D:\users\jang\app\asr\source\data\errorFile\音高切錯'; 0005 0006 plotOpt=1; 0007 pitchFile='test.pitch'; 0008 0009 waveData=recursiveFileList(waveDir, 'wav'); 0010 waveNum=length(waveData); 0011 0012 for i=1:waveNum 0013 waveFile=waveData(i).path; 0014 fprintf('%d/%d: %s\n', i, waveNum, waveFile); 0015 [parentDir, baseName, extName, version]=fileparts(waveFile); 0016 text=baseName; 0017 if all(text<256) 0018 language='english'; 0019 else 0020 language='chinese'; 0021 end 0022 cmObj=waveAssess(waveFile, text, language, plotOpt, pitchFile); 0023 fprintf('\tHit any key to continue...'); pause; fprintf('\n'); 0024 end