Engee documentation

lsf2poly

Conversion of linear spectral frequencies into prediction filter coefficients.

Library

EngeeDSP

Syntax

Function call

  • a = lsf2poly(lsf) — returns the coefficients of the prediction filter a from the array of linear spectral frequencies lsf.

Arguments

Input arguments

# lsf — linear spectral frequencies

+ vector | the matrix

Details

Linear spectral frequencies specified as a vector or matrix.

If you specify an argument lsf as a matrix, the function lsf2poly will consider each column lsf as a separate channel.

Типы данных

Float32, Float64

Output arguments

# a — coefficients of the prediction filter

+ vector | the matrix

Details

Prediction filter coefficients returned as a vector or matrix of size on , where — the number of linear spectral frequencies, and — number of channels. The function returns the first column a in the form of units, thus, a[1] = 1 When a is a string vector.

Examples

Prediction coefficients based on linear spectral frequencies

Details

Let be given a vector lsf of linear spectral frequencies, we determine the equivalent coefficients of the prediction filter.

import EngeeDSP.Functions: lsf2poly

lsf = [0.7842 1.5605 1.8776 1.8984 2.3593]
a = lsf2poly(lsf)
1×6 Matrix{Float64}:
 1.0  0.614838  0.989885  9.31594e-5  0.00313714  -0.00812002

Literature

  1. Deller, John R., John G. Proakis, and John H. L. Hansen. Discrete-Time Processing of Speech Signals. New York: Macmillan, 1993.

  2. Rabiner, Lawrence R., and Ronald W. Schafer. Digital Processing of Speech Signals. Englewood Cliffs, NJ: Prentice-Hall, 1978.