gocount2.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:
语音合成与识别
开发平台:
Matlab
- % ====== Load all wave data
- if ~exist('waveData'),
- load waveData.mat
- end
- % ====== Get rid of English singers
- index = [];
- for i = 1:length(waveData),
- if any(abs(waveData(i).answer)<127),
- index = [index, i];
- end
- end
- waveData(index) = [];
- % ====== Set parameters
- P.frameSize = 256;
- P.overlap = 86;
- P.minEnergy = 0.001;
- minEnergy = (1:100)/10000;
- % ====== Get word count of each wave file
- for i = 1:length(minEnergy),
- fprintf('%g/%g ==> ', i, length(minEnergy));
- P.minEnergy = minEnergy(i);
- tic
- rate(i) = wdcntall(P, waveData);
- fprintf('%g secondsn', toc);
- end
- plot(minEnergy, rate, '-o');
- xlabel('minEnergy');
- ylabel('Correct Rate');