📄 autocorr_levinson.m
字号:
function AR=autocorr_levinson(window_speech)
%perform the following functions
%Autocorrelations
%Lag windowing
%Levinson Durbin
%window_speech---Input windowed signal (s'(n))
%AR---AR[M] LPC coefficients (m = 10)
%首先Autocorrelations
R=zeros(1,11);%对应R(0)-R(10)
for k=1:11
R(k)=window_speech(k:end)*window_speech(1:end-k+1)';
%R(k)=sum(window_speech(1:end-k+1).*window_speech(k:end));
end
%if R(1)<1
%R(1)=1;
%end
R(1)=1.0001*R(1);
%round(R*2^31)'
%接下来Lag windowing
for k=2:11
R(k)=R(k)*exp(-0.5*(2*pi*60*(k-1)/8000)^2);
end
%最后Levinson Durbin
AR = levinson(R,10);
%round(AR'*2^12)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -