In file ../include/sigpr/EST_sigpr_utt.h:

void sig2coef

(EST_Wave &sig, EST_Track &a,
  EST_String type, float factor = 2.0,
  EST_WindowFunc* wf = EST_Window::creator(DEFAULT_WINDOW_NAME))

Produce a single set of coefficents from a waveform.

Documentation

Produce a single set of coefficents from a waveform. The type of coefficient required is given in the argument <parameter>type</parameter>. Possible types are:

<variablelist>

<varlistentry><term>lpc</term><listitem>linear predictive coding</listitem></varlistentry>

<varlistentry><term>cep</term><listitem>cepstrum coding from lpc coefficients</listitem></varlistentry>

<varlistentry><term>melcep</term><listitem>Mel scale cepstrum coding via fbank</listitem></varlistentry>

<varlistentry><term>fbank</term><listitem>Mel scale log filterbank analysis</listitem></varlistentry>

<varlistentry><term>lsf</term><listitem>line spectral frequencies</listitem></varlistentry>

<varlistentry><term>ref</term><listitem>Linear prediction reflection coefficients</listitem></varlistentry>

<varlistentry><term>power</term><listitem></listitem></varlistentry>

<varlistentry><term>f0</term><listitem>srpd algorithm</listitem></varlistentry>

<varlistentry><term>energy</term><listitem>root mean square energy</listitem></varlistentry>

</variablelist>

The order of the analysis is calculated from the number of channels in <parameter>fv</parameter>. The positions of the analysis windows must be given by filling in the track's time array.

This function windows the waveform at the intervals given by the track time array. The length of each window is <parameter>factor<parameter> the local time shift. The windowing function is giveb by <parameter>wf</parameter>.

Parameters:
sig - : input waveform
fv - : output coefficients. These have been pre-allocated and the number of channels in a indicates the order of the analysis.
type - : the types of coefficients to be produced. "lpc", "cep" etc
factor - : the frame length factor, i.e. the analysis frame length will be this times the local pitch period.
wf - : function for windowing. See Windowing mechanisms

Alphabetic index HTML hierarchy of classes or Java


This page is part of the Edinburgh Speech Tools Library documentation
Copyright University of Edinburgh 1997
Contact: speech_tools@cstr.ed.ac.uk