TEVALHMM.M
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:
语音合成与识别
开发平台:
Matlab
- state = 1:10;
- featureDim = 39;
- frameNum = 100;
- feature = rand(featureDim, frameNum);
- beginCorner = 1;
- endCorner = 1;
- [maxLogProb, hmmPath] = evalhmmmex(feature, state, beginCorner, endCorner);
- fprintf('maxLogProb = %gn', maxLogProb);
- fprintf('hmmPath = %sn', mat2str(hmmPath));
- hmmplot(feature, state, hmmPath);
- % Check computation time
- state = 1:100;
- feature = rand(39, 500);
- tic
- for i=1:100,
- [maxLogProb, hmmPath] = evalhmmmex(feature, state, beginCorner, endCorner);
- end
- fprintf('Time = %gn', toc/100);