dtwplot_b.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:
语音合成与识别
开发平台:
Matlab
- function dtwplot(speechA, speechB, dtwPath)
- %DTWPLOT DTW plot for speech vectors
- % Usage:
- % dtwplot(speechA, speechB, dtwpath)
- % dtwpath is obtained from dtwasr.dll.
- %
- speechAnum = size(speechA, 2);
- speechBnum = size(speechB, 2);
- clf;
- % Vertical yellow grid line
- for i = 1:speechAnum,
- line([i, i], [1, speechBnum], 'color', 'y');
- end
- % Horizontal yellow grid line
- for j = 1:speechBnum,
- line([1, speechAnum], [j, j], 'color', 'y');
- end
- % ====== Solution obtained by DTW
- for i = 1:size(dtwPath,2)-1,
- line([dtwPath(1,i), dtwPath(1,i+1)], [dtwPath(2,i), dtwPath(2,i+1)], ...
- 'color', 'r', 'marker', '.');
- end
- xlabel('Test vector');
- ylabel('Reference vector');
- box on
- axis tight
- axis image