lwarp.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:0k
源码类别:
语音合成与识别
开发平台:
Matlab
- function aveDist = lwarp(test, template)
- % LWARP Linear time warping
- %template = rand(26, 100);
- %test = rand(26, 120);
- x = 1:size(template,2);
- y = template';
- x1 = linspace(1, length(x), size(test,2));
- y1 = interp1(x, y, x1)';
- aveDist = sum(sum(abs(test-y1)))/prod(size(y1));