⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 initsub.m

📁 the implement of the encoder and the decoder of the CELP
💻 M
字号:
function [b1,b2,b3,b4,sube]=initsub(spch,sube,l,b1,b2,b3,b4,flag)

global pcode pgain sub_cnt frame_count gamma1 olpc pdlyindx lpcMat TRUE FALSE 

if flag~=FALSE
    [sube,b1]=pitch_syn(sube,b1,pcode(sub_cnt),pgain(sub_cnt));     % Pitch synthesis routine
end

[voc,b2]=lpcr(lpcMat(frame_count,:),b2,sube);                       % LPC synthesis. Returned with voc

sube=spch-voc;                                                      % Get error signal (First error or second error)

[sube,b3]=FIRfilter(lpcMat(frame_count,:),b3,sube);                 % A(z) filter

wlpc=wcoff(gamma1,lpcMat(frame_count,:));                       % Weight LPC coefficients with 0.8

[sube,b4]=lpcr(wlpc,b4,sube);                     % Weighted filter error signal

% The last three steps realize weighting filtering: A(z)/A(z/gamma)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -