Edinburgh Speech Tools  2.1-release
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Modules | Functions
Linear Prediction functions

Including, generation of coefficients from the signal, reflection coefficients, line spectral frequencies, areas. More...

Collaboration diagram for Linear Prediction functions:

Modules

 Area Functions
 

Functions

void lpc2ref (const EST_FVector &lpc, EST_FVector &ref)
 
void ref2lpc (const EST_FVector &ref, EST_FVector &lpc)
 
void lpc2lsf (const EST_FVector &lpc, EST_FVector &lsf)
 
void lsf2lpc (const EST_FVector &lsf, EST_FVector &lpc)
 
void sig2lpc (const EST_FVector &sig, EST_FVector &acf, EST_FVector &ref, EST_FVector &lpc)
 
void lpc2cep (const EST_FVector &lpc, EST_FVector &cep)
 
void sig2lpc (const EST_FVector &sig, EST_FVector &lpc)
 
void sig2ref (const EST_FVector &sig, EST_FVector &ref)
 

Detailed Description

Including, generation of coefficients from the signal, reflection coefficients, line spectral frequencies, areas.

Function Documentation

void lpc2ref ( const EST_FVector &  lpc,
EST_FVector &  ref 
)

Calculate the reflection coefficients from the lpc coefficients. Note that in the standard linear prediction analysis, the reflection coefficients are generated as a by-product.

See also
sig2lpc

Definition at line 335 of file sigpr_frame.cc.

void ref2lpc ( const EST_FVector &  ref,
EST_FVector &  lpc 
)

Calculate the linear prediction coefficients from the reflection coefficients. Use the equation:

\[power=\frac{1}{n}\sum_{i=1}^{n}a_{i}^2\]

See also
lpc2ref

Definition at line 390 of file sigpr_frame.cc.

void lpc2lsf ( const EST_FVector &  lpc,
EST_FVector &  lsf 
)

Calculate line spectral frequencies from linear prediction coefficients. Use the equation:

\[power=\frac{1}{n}\sum_{i=1}^{n}a_{i}^2\]

See also
lsf2lpc

Definition at line 418 of file sigpr_frame.cc.

void lsf2lpc ( const EST_FVector &  lsf,
EST_FVector &  lpc 
)

Calculate line spectral frequencies from linear prediction coefficients. Use the equation:

\[power=\frac{1}{n}\sum_{i=1}^{n}a_{i}^2\]

See also
lpc2lsf

Definition at line 425 of file sigpr_frame.cc.

void sig2lpc ( const EST_FVector &  sig,
EST_FVector &  acf,
EST_FVector &  ref,
EST_FVector &  lpc 
)

Produce the full set of linear prediction coefficients from a frame of speech waveform.

Parameters
sigthe frame of input waveform
acfthe autocorrelation coefficients
refthe reflection coefficients
lpcthe LPC coefficients

The order of the lpc analysis is given as the size of the lpc vector - 1. The coefficients are placed in the locations 1 - size, and the energy is placed in location 0.

Definition at line 432 of file sigpr_frame.cc.

void lpc2cep ( const EST_FVector &  lpc,
EST_FVector &  cep 
)

Calculate cepstral coefficients from lpc coefficients.

It is possible to calculate a set of cepstral coefficients from lpc coefficients using the relationship:

\[c_{k}= a_{k} + \frac{1}{k}\sum_{i=1}^{k-1} i c_{i} a_{k-1}\]

The order of the cepstral analysis can be different from the lpc order. If the cepstral order is greater, interpolation is used (FINISH add equation). Both orders are taken from the lengths of the respective vectors. Note that these cepstral coefficients take on the assumptions (and errors) of the lpc model and hence will not be the same as cepstral coefficients calculated using DFT functions.

Parameters
lpcthe LPC coefficients (input)
lpcthe cepstral coefficients (output)

Definition at line 289 of file sigpr_frame.cc.

void sig2lpc ( const EST_FVector &  sig,
EST_FVector &  lpc 
)

Produce a set linear prediction coefficients from a frame of speech waveform. sig is the frame of input waveform, and lpc are the LPC coefficients. The order** of the lpc analysis is given as the size of the lpc vector -1. The coefficients are placed in the locations 1 - size, and the energy is placed in location 0.

Definition at line 229 of file sigpr_frame.cc.

void sig2ref ( const EST_FVector &  sig,
EST_FVector &  ref 
)

Produce a set of reflection coefficients from a frame of speech waveform. sig is the frame of input waveform, and ref are the LPC coefficients. The order** of the lpc analysis is given as the size of the lpc vector -1. The coefficients are placed in the locations 1 - size, and the energy is placed in location 0.

Definition at line 251 of file sigpr_frame.cc.