delta2.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:
语音合成与识别
开发平台:
Matlab
- function parameter = delta2(delta_window,parameter)
- %compute delta value : delta cepstrum and delta log energy.
- rows = size(parameter,1);
- cols = size(parameter,2);
- temp = [zeros(rows,delta_window) parameter zeros(rows,delta_window)];
- temp2 = zeros(rows,cols);
- denominator = sum([1:delta_window].^2)*2;
- for i = 1+delta_window : cols+delta_window,
- subtrahend = 0;
- minuend = 0;
- for j = 1 : delta_window,
- subtrahend = subtrahend + temp(:,i+j)*j;
- minuend = minuend + temp(:,i-j)*(-j);
- end;
- temp2(:,i-delta_window) = (subtrahend - minuend)/denominator;
- end;
- parameter = [parameter ; temp2];