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

📄 lsfxlp.m

📁 ITU-T G.723.1 Speech Coder: Matlab implementation This package implements the speech coder and de
💻 M
字号:
function a = LSFxLP (lsf, LSFpar)% Convert LSF's to LP coefficients. Optionally modify the LSF% values to account for the use of linear interpolation of a% cosine table as used in the G.723.1 procedure.%   lsf: Column vectors of LSF parameters% $Id: LSFxLP.m 1.1 2004/07/06 G.723.1-v2r1a $% In G.723.1, the conversion from LSFs to LP coefficients is carried% out in the x = cos(w) domain. The conversion to the x-domain is% done via linear interpolation into a cosine table. Here we modify% the LSF's to take into account the error in the conversion to x values.if (isfield (LSFpar.Fix, 'CosTable'))  NCos = length (LSFpar.Fix.CosTable);  w = (0:(NCos-1)) * 2 * pi / NCos;     % w runs from 0 to 2*pi  x = interp1 (w, LSFpar.Fix.CosTable, lsf, 'linear');  lsf = acos (x);end% Convert to LP coefficientsN = size (lsf, 2);for (i = 1:N)  ai = lsf2poly (lsf(:,i));   % Inconsistent: aI is a row vector  a(:,i) = ai(:);endreturn

⌨️ 快捷键说明

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