dsp.LSPToLPC System object

Package: dsp

Convert line spectral pairs to linear prediction coefficients

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.

Construction

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

Methods

cloneCreate LSP to LPC object with same property values
getNumInputsNumber of expected inputs to step method
getNumOutputsNumber of outputs of step method
isLockedLocked status for input attributes and nontunable properties
releaseAllow property value and input characteristics changes
stepConvert input line spectral pairs to linear prediction coefficients

Examples

Convert line spectral pairs to linear prediction coefficients:

    ylsp = [0.7080 0.0103 -0.3021 -0.3218 -0.7093]';
    hlsp2lpc = dsp.LSPToLPC;
    ylpc = step(hlsp2lpc, ylsp) 

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.
Was this topic helpful?