dsp.LSPToLPC

(To be removed) Convert line spectral pairs to linear prediction coefficients

dsp.LSPToLPC will be removed in a future release. For more information, see Compatibility Considerations.

Description

The LSPToLPC object converts line spectral pairs to linear prediction coefficients.

To convert LSP to LPC:

  1. Define and set up your LSP to LPC converter. See Construction.

  2. Call step to convert LSP according to the properties of dsp.LSPToLPC. The behavior of step is specific to each object in the toolbox.

Note

Starting in R2016b, instead of using the step method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For example, y = step(obj,x) and y = obj(x) perform equivalent operations.

Construction

H = dsp.LSPToLPC returns an LSP to LPC System object, H, which converts line spectral pairs (LSPs) to linear prediction coefficients (LPCs).

Methods

stepConvert input line spectral pairs to linear prediction coefficients
Common to All System Objects
release

Allow System object property value changes

Examples

Convert LSP To LPC Coefficients

Note: This example runs only in R2016b or later. If you are using an earlier release, replace each call to the function with the equivalent step syntax. For example, myObject(x) becomes step(myObject,x).

Convert line spectral pairs to linear prediction coefficients.

ylsp = [0.7080 0.0103 -0.3021 -0.3218 -0.7093]';
lsp2lpc = dsp.LSPToLPC;
ylpc = lsp2lpc(ylsp)
ylpc = 6×1

    1.0000
    0.6149
    0.9898
   -0.0000
    0.0030
   -0.0081

Algorithms

This object implements the algorithm, inputs, and outputs described on the LSF/LSP to LPC Conversion block reference page. The object properties correspond to the block parameters, except:

No object property corresponds to the Input block parameter. The object converts LSP in the range (–1, 1) to LPC.

Compatibility Considerations

expand all

Warns starting in R2019a

Extended Capabilities

See Also

Functions

Introduced in R2012a