(To be removed) Convert linear prediction coefficients to cepstral coefficients
dsp.LPCToCepstral
will be removed in a future release. For more
information, see Compatibility Considerations.
The LPCToCepstral
object converts linear prediction
coefficients to cepstral coefficients.
To convert LPC to cepstral coefficients:
Define and set up your LPC to cepstral converter. See Construction.
Call step
to convert LPC according to the
properties of dsp.LPCToCepstral
. The behavior
of step
is specific to each object in the
toolbox.
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.
lpc2cc = dsp.LPCToCepstral
returns an LPC to cepstral converter
object, lpc2cc
, that converts linear prediction
coefficients (LPCs) to cepstral coefficients (CCs).
lpc2cc = dsp.LPCToCepstral('
returns an LPC to cepstral converter object, PropertyName
',PropertyValue
,...)lpc2cc
,
with each specified property set to the specified value.
|
Enable prediction error power input Choose how to set the prediction error power. When you set this property
to |
|
Source of cepstrum length Select how to specify the length of cepstral coefficients:
|
|
Number of output cepstral coefficients Set the length of the output cepstral coefficients vector as a scalar
numeric integer. This property applies when you set the
|
|
LPC coefficient nonunity action Specify the action that the object takes when the first coefficient of
each channel of the LPC input is not |
step | Cepstral coefficients from columns of input LPC coefficients |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
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).
levinson = dsp.LevinsonSolver; levinson.AOutputPort = true; % Output polynomial coefficients ac = dsp.Autocorrelator; ac.MaximumLagSource = 'Property'; ac.MaximumLag = 9; % Compute autocorrelation lags between [0:9] lpc2cc = dsp.LPCToCepstral; x = (1:100)'; a = ac(x);
Compute LPC coefficients.
A = levinson(a);
Convert LPC to CC.
CC = lpc2cc(A);
This object implements the algorithm, inputs, and outputs described on the LPC to/from Cepstral Coefficients block reference page. The object properties correspond to the block parameters, except:
The object does not have a property that corresponds to the Type
of Conversion block parameter. The object's behavior corresponds
to the block's behavior when you set the Type of Conversion
parameter to LPCs to cepstral coefficients . |