\doxysection{fe.\+h}
\label{fe_8h_source}\index{include/sphinxbase/fe.h@{include/sphinxbase/fe.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*\ -\/*-\/\ c-\/basic-\/offset:\ 4;\ indent-\/tabs-\/mode:\ nil\ -\/*-\/\ */}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*\ ====================================================================}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *\ Copyright\ (c)\ 1996-\/2004\ Carnegie\ Mellon\ University.\ \ All\ rights\ }}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ reserved.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ Redistribution\ and\ use\ in\ source\ and\ binary\ forms,\ with\ or\ without}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ modification,\ are\ permitted\ provided\ that\ the\ following\ conditions}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ are\ met:}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ 1.\ Redistributions\ of\ source\ code\ must\ retain\ the\ above\ copyright}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ \ \ \ notice,\ this\ list\ of\ conditions\ and\ the\ following\ disclaimer.\ }}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ 2.\ Redistributions\ in\ binary\ form\ must\ reproduce\ the\ above\ copyright}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ \ \ \ notice,\ this\ list\ of\ conditions\ and\ the\ following\ disclaimer\ in}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ \ \ \ the\ documentation\ and/or\ other\ materials\ provided\ with\ the}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ \ \ \ distribution.}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ This\ work\ was\ supported\ in\ part\ by\ funding\ from\ the\ Defense\ Advanced\ }}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ Research\ Projects\ Agency\ and\ the\ National\ Science\ Foundation\ of\ the\ }}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ United\ States\ of\ America,\ and\ the\ CMU\ Sphinx\ Speech\ Consortium.}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ *\ THIS\ SOFTWARE\ IS\ PROVIDED\ BY\ CARNEGIE\ MELLON\ UNIVERSITY\ \`{}\`{}AS\ IS''\ AND\ }}
\DoxyCodeLine{00023\ \textcolor{comment}{\ *\ ANY\ EXPRESSED\ OR\ IMPLIED\ WARRANTIES,\ INCLUDING,\ BUT\ NOT\ LIMITED\ TO,\ }}
\DoxyCodeLine{00024\ \textcolor{comment}{\ *\ THE\ IMPLIED\ WARRANTIES\ OF\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ A\ PARTICULAR}}
\DoxyCodeLine{00025\ \textcolor{comment}{\ *\ PURPOSE\ ARE\ DISCLAIMED.\ \ IN\ NO\ EVENT\ SHALL\ CARNEGIE\ MELLON\ UNIVERSITY}}
\DoxyCodeLine{00026\ \textcolor{comment}{\ *\ NOR\ ITS\ EMPLOYEES\ BE\ LIABLE\ FOR\ ANY\ DIRECT,\ INDIRECT,\ INCIDENTAL,}}
\DoxyCodeLine{00027\ \textcolor{comment}{\ *\ SPECIAL,\ EXEMPLARY,\ OR\ CONSEQUENTIAL\ DAMAGES\ (INCLUDING,\ BUT\ NOT\ }}
\DoxyCodeLine{00028\ \textcolor{comment}{\ *\ LIMITED\ TO,\ PROCUREMENT\ OF\ SUBSTITUTE\ GOODS\ OR\ SERVICES;\ LOSS\ OF\ USE,\ }}
\DoxyCodeLine{00029\ \textcolor{comment}{\ *\ DATA,\ OR\ PROFITS;\ OR\ BUSINESS\ INTERRUPTION)\ HOWEVER\ CAUSED\ AND\ ON\ ANY\ }}
\DoxyCodeLine{00030\ \textcolor{comment}{\ *\ THEORY\ OF\ LIABILITY,\ WHETHER\ IN\ CONTRACT,\ STRICT\ LIABILITY,\ OR\ TORT\ }}
\DoxyCodeLine{00031\ \textcolor{comment}{\ *\ (INCLUDING\ NEGLIGENCE\ OR\ OTHERWISE)\ ARISING\ IN\ ANY\ WAY\ OUT\ OF\ THE\ USE\ }}
\DoxyCodeLine{00032\ \textcolor{comment}{\ *\ OF\ THIS\ SOFTWARE,\ EVEN\ IF\ ADVISED\ OF\ THE\ POSSIBILITY\ OF\ SUCH\ DAMAGE.}}
\DoxyCodeLine{00033\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00034\ \textcolor{comment}{\ *\ ====================================================================}}
\DoxyCodeLine{00035\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00036\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ \textcolor{comment}{/*}}
\DoxyCodeLine{00039\ \textcolor{comment}{\ *\ fe.h}}
\DoxyCodeLine{00040\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00041\ \textcolor{comment}{\ *\ \$Log:\ fe.h,v\ \$}}
\DoxyCodeLine{00042\ \textcolor{comment}{\ *\ Revision\ 1.11\ \ 2005/02/05\ 02:15:02\ \ egouvea}}
\DoxyCodeLine{00043\ \textcolor{comment}{\ *\ Removed\ fe\_process(),\ never\ used}}
\DoxyCodeLine{00044\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00045\ \textcolor{comment}{\ *\ Revision\ 1.10\ \ 2004/12/10\ 16:48:55\ \ rkm}}
\DoxyCodeLine{00046\ \textcolor{comment}{\ *\ Added\ continuous\ density\ acoustic\ model\ handling}}
\DoxyCodeLine{00047\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00048\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00049\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00050\ }
\DoxyCodeLine{00051\ \textcolor{preprocessor}{\#if\ defined(WIN32)\ \&\&\ !defined(GNUWINCE)}}
\DoxyCodeLine{00052\ \textcolor{preprocessor}{\#define\ srand48(x)\ srand(x)}}
\DoxyCodeLine{00053\ \textcolor{preprocessor}{\#define\ lrand48()\ rand()}}
\DoxyCodeLine{00054\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00056\ \textcolor{preprocessor}{\#ifndef\ \_NEW\_FE\_H\_}}
\DoxyCodeLine{00057\ \textcolor{preprocessor}{\#define\ \_NEW\_FE\_H\_}}
\DoxyCodeLine{00058\ }
\DoxyCodeLine{00059\ \textcolor{comment}{/*\ Win32/WinCE\ DLL\ gunk\ */}}
\DoxyCodeLine{00060\ \textcolor{preprocessor}{\#include\ <sphinxbase/sphinxbase\_export.h>}}
\DoxyCodeLine{00061\ }
\DoxyCodeLine{00062\ \textcolor{preprocessor}{\#include\ <sphinxbase/cmd\_ln.h>}}
\DoxyCodeLine{00063\ \textcolor{preprocessor}{\#include\ <sphinxbase/fixpoint.h>}}
\DoxyCodeLine{00064\ }
\DoxyCodeLine{00065\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00066\ \textcolor{keyword}{extern}\ \textcolor{stringliteral}{"{}C"{}}\ \{}
\DoxyCodeLine{00067\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00068\ \textcolor{preprocessor}{\#if\ 0}}
\DoxyCodeLine{00069\ \textcolor{comment}{/*\ Fool\ Emacs.\ */}}
\DoxyCodeLine{00070\ \}}
\DoxyCodeLine{00071\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00072\ }
\DoxyCodeLine{00073\ \textcolor{preprocessor}{\#ifdef\ WORDS\_BIGENDIAN}}
\DoxyCodeLine{00074\ \textcolor{preprocessor}{\#define\ NATIVE\_ENDIAN\ "{}big"{}}}
\DoxyCodeLine{00075\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00076\ \textcolor{preprocessor}{\#define\ NATIVE\_ENDIAN\ "{}little"{}}}
\DoxyCodeLine{00077\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00078\ }
\DoxyCodeLine{00080\ \textcolor{preprocessor}{\#define\ DEFAULT\_SAMPLING\_RATE\ 16000}}
\DoxyCodeLine{00082\ \textcolor{preprocessor}{\#define\ DEFAULT\_FRAME\_RATE\ 100}}
\DoxyCodeLine{00085\ \textcolor{preprocessor}{\#define\ DEFAULT\_FRAME\_SHIFT\ 160}}
\DoxyCodeLine{00087\ \textcolor{preprocessor}{\#define\ DEFAULT\_WINDOW\_LENGTH\ 0.025625\ }}
\DoxyCodeLine{00089\ \textcolor{preprocessor}{\#define\ DEFAULT\_FFT\_SIZE\ 512}}
\DoxyCodeLine{00091\ \textcolor{preprocessor}{\#define\ DEFAULT\_NUM\_CEPSTRA\ 13}}
\DoxyCodeLine{00093\ \textcolor{preprocessor}{\#define\ DEFAULT\_NUM\_FILTERS\ 40}}
\DoxyCodeLine{00095\ \textcolor{preprocessor}{\#define\ DEFAULT\_LOWER\_FILT\_FREQ\ 133.33334}}
\DoxyCodeLine{00097\ \textcolor{preprocessor}{\#define\ DEFAULT\_UPPER\_FILT\_FREQ\ 6855.4976}}
\DoxyCodeLine{00099\ \textcolor{preprocessor}{\#define\ DEFAULT\_PRE\_EMPHASIS\_ALPHA\ 0.97}}
\DoxyCodeLine{00101\ \textcolor{preprocessor}{\#define\ DEFAULT\_WARP\_TYPE\ "{}inverse\_linear"{}}}
\DoxyCodeLine{00103\ \textcolor{preprocessor}{\#define\ SEED\ \ -\/1}}
\DoxyCodeLine{00104\ }
\DoxyCodeLine{00105\ \textcolor{preprocessor}{\#define\ waveform\_to\_cepstral\_command\_line\_macro()\ \(\backslash\)}}
\DoxyCodeLine{00106\ \textcolor{preprocessor}{\ \ \{\ "{}-\/logspec"{},\ \(\backslash\)}}
\DoxyCodeLine{00107\ \textcolor{preprocessor}{\ \ \ \ ARG\_BOOLEAN,\ \(\backslash\)}}
\DoxyCodeLine{00108\ \textcolor{preprocessor}{\ \ \ \ "{}no"{},\ \(\backslash\)}}
\DoxyCodeLine{00109\ \textcolor{preprocessor}{\ \ \ \ "{}Write\ out\ logspectral\ files\ instead\ of\ cepstra"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00110\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00111\ \textcolor{preprocessor}{\ \ \{\ "{}-\/smoothspec"{},\ \(\backslash\)}}
\DoxyCodeLine{00112\ \textcolor{preprocessor}{\ \ \ \ ARG\_BOOLEAN,\ \(\backslash\)}}
\DoxyCodeLine{00113\ \textcolor{preprocessor}{\ \ \ \ "{}no"{},\ \(\backslash\)}}
\DoxyCodeLine{00114\ \textcolor{preprocessor}{\ \ \ \ "{}Write\ out\ cepstral-\/smoothed\ logspectral\ files"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00115\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00116\ \textcolor{preprocessor}{\ \ \{\ "{}-\/transform"{},\ \(\backslash\)}}
\DoxyCodeLine{00117\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRING,\ \(\backslash\)}}
\DoxyCodeLine{00118\ \textcolor{preprocessor}{\ \ \ \ "{}legacy"{},\ \(\backslash\)}}
\DoxyCodeLine{00119\ \textcolor{preprocessor}{\ \ \ \ "{}Which\ type\ of\ transform\ to\ use\ to\ calculate\ cepstra\ (legacy,\ dct,\ or\ htk)"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00120\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00121\ \textcolor{preprocessor}{\ \ \{\ "{}-\/alpha"{},\ \(\backslash\)}}
\DoxyCodeLine{00122\ \textcolor{preprocessor}{\ \ \ \ ARG\_FLOAT32,\ \(\backslash\)}}
\DoxyCodeLine{00123\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRINGIFY(DEFAULT\_PRE\_EMPHASIS\_ALPHA),\ \(\backslash\)}}
\DoxyCodeLine{00124\ \textcolor{preprocessor}{\ \ \ \ "{}Preemphasis\ parameter"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00125\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00126\ \textcolor{preprocessor}{\ \ \{\ "{}-\/samprate"{},\ \(\backslash\)}}
\DoxyCodeLine{00127\ \textcolor{preprocessor}{\ \ \ \ ARG\_FLOAT32,\ \(\backslash\)}}
\DoxyCodeLine{00128\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRINGIFY(DEFAULT\_SAMPLING\_RATE),\ \(\backslash\)}}
\DoxyCodeLine{00129\ \textcolor{preprocessor}{\ \ \ \ "{}Sampling\ rate"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00130\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00131\ \textcolor{preprocessor}{\ \ \{\ "{}-\/frate"{},\ \(\backslash\)}}
\DoxyCodeLine{00132\ \textcolor{preprocessor}{\ \ \ \ ARG\_INT32,\ \(\backslash\)}}
\DoxyCodeLine{00133\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRINGIFY(DEFAULT\_FRAME\_RATE),\ \(\backslash\)}}
\DoxyCodeLine{00134\ \textcolor{preprocessor}{\ \ \ \ "{}Frame\ rate"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00135\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00136\ \textcolor{preprocessor}{\ \ \{\ "{}-\/wlen"{},\ \(\backslash\)}}
\DoxyCodeLine{00137\ \textcolor{preprocessor}{\ \ \ \ ARG\_FLOAT32,\ \(\backslash\)}}
\DoxyCodeLine{00138\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRINGIFY(DEFAULT\_WINDOW\_LENGTH),\ \(\backslash\)}}
\DoxyCodeLine{00139\ \textcolor{preprocessor}{\ \ \ \ "{}Hamming\ window\ length"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00140\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00141\ \textcolor{preprocessor}{\ \ \{\ "{}-\/nfft"{},\ \(\backslash\)}}
\DoxyCodeLine{00142\ \textcolor{preprocessor}{\ \ \ \ ARG\_INT32,\ \(\backslash\)}}
\DoxyCodeLine{00143\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRINGIFY(DEFAULT\_FFT\_SIZE),\ \(\backslash\)}}
\DoxyCodeLine{00144\ \textcolor{preprocessor}{\ \ \ \ "{}Size\ of\ FFT"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00145\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00146\ \textcolor{preprocessor}{\ \ \{\ "{}-\/nfilt"{},\ \(\backslash\)}}
\DoxyCodeLine{00147\ \textcolor{preprocessor}{\ \ \ \ ARG\_INT32,\ \(\backslash\)}}
\DoxyCodeLine{00148\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRINGIFY(DEFAULT\_NUM\_FILTERS),\ \(\backslash\)}}
\DoxyCodeLine{00149\ \textcolor{preprocessor}{\ \ \ \ "{}Number\ of\ filter\ banks"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00150\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00151\ \textcolor{preprocessor}{\ \ \{\ "{}-\/lowerf"{},\ \(\backslash\)}}
\DoxyCodeLine{00152\ \textcolor{preprocessor}{\ \ \ \ ARG\_FLOAT32,\ \(\backslash\)}}
\DoxyCodeLine{00153\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRINGIFY(DEFAULT\_LOWER\_FILT\_FREQ),\ \(\backslash\)}}
\DoxyCodeLine{00154\ \textcolor{preprocessor}{\ \ \ \ "{}Lower\ edge\ of\ filters"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00155\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00156\ \textcolor{preprocessor}{\ \ \{\ "{}-\/upperf"{},\ \(\backslash\)}}
\DoxyCodeLine{00157\ \textcolor{preprocessor}{\ \ \ \ ARG\_FLOAT32,\ \(\backslash\)}}
\DoxyCodeLine{00158\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRINGIFY(DEFAULT\_UPPER\_FILT\_FREQ),\ \(\backslash\)}}
\DoxyCodeLine{00159\ \textcolor{preprocessor}{\ \ \ \ "{}Upper\ edge\ of\ filters"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00160\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00161\ \textcolor{preprocessor}{\ \ \{\ "{}-\/unit\_area"{},\ \(\backslash\)}}
\DoxyCodeLine{00162\ \textcolor{preprocessor}{\ \ \ \ ARG\_BOOLEAN,\ \(\backslash\)}}
\DoxyCodeLine{00163\ \textcolor{preprocessor}{\ \ \ \ "{}yes"{},\ \(\backslash\)}}
\DoxyCodeLine{00164\ \textcolor{preprocessor}{\ \ \ \ "{}Normalize\ mel\ filters\ to\ unit\ area"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00165\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00166\ \textcolor{preprocessor}{\ \ \{\ "{}-\/round\_filters"{},\ \(\backslash\)}}
\DoxyCodeLine{00167\ \textcolor{preprocessor}{\ \ \ \ ARG\_BOOLEAN,\ \(\backslash\)}}
\DoxyCodeLine{00168\ \textcolor{preprocessor}{\ \ \ \ "{}yes"{},\ \(\backslash\)}}
\DoxyCodeLine{00169\ \textcolor{preprocessor}{\ \ \ \ "{}Round\ mel\ filter\ frequencies\ to\ DFT\ points"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00170\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00171\ \textcolor{preprocessor}{\ \ \{\ "{}-\/ncep"{},\ \(\backslash\)}}
\DoxyCodeLine{00172\ \textcolor{preprocessor}{\ \ \ \ ARG\_INT32,\ \(\backslash\)}}
\DoxyCodeLine{00173\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRINGIFY(DEFAULT\_NUM\_CEPSTRA),\ \(\backslash\)}}
\DoxyCodeLine{00174\ \textcolor{preprocessor}{\ \ \ \ "{}Number\ of\ cep\ coefficients"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00175\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00176\ \textcolor{preprocessor}{\ \ \{\ "{}-\/doublebw"{},\ \(\backslash\)}}
\DoxyCodeLine{00177\ \textcolor{preprocessor}{\ \ \ \ ARG\_BOOLEAN,\ \(\backslash\)}}
\DoxyCodeLine{00178\ \textcolor{preprocessor}{\ \ \ \ "{}no"{},\ \(\backslash\)}}
\DoxyCodeLine{00179\ \textcolor{preprocessor}{\ \ \ \ "{}Use\ double\ bandwidth\ filters\ (same\ center\ freq)"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00180\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00181\ \textcolor{preprocessor}{\ \ \{\ "{}-\/lifter"{},\ \(\backslash\)}}
\DoxyCodeLine{00182\ \textcolor{preprocessor}{\ \ \ \ ARG\_INT32,\ \(\backslash\)}}
\DoxyCodeLine{00183\ \textcolor{preprocessor}{\ \ \ \ "{}0"{},\ \(\backslash\)}}
\DoxyCodeLine{00184\ \textcolor{preprocessor}{\ \ \ \ "{}Length\ of\ sin-\/curve\ for\ liftering,\ or\ 0\ for\ no\ liftering."{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00185\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00186\ \textcolor{preprocessor}{\ \ \{\ "{}-\/input\_endian"{},\ \(\backslash\)}}
\DoxyCodeLine{00187\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRING,\ \(\backslash\)}}
\DoxyCodeLine{00188\ \textcolor{preprocessor}{\ \ \ \ NATIVE\_ENDIAN,\ \(\backslash\)}}
\DoxyCodeLine{00189\ \textcolor{preprocessor}{\ \ \ \ "{}Endianness\ of\ input\ data,\ big\ or\ little,\ ignored\ if\ NIST\ or\ MS\ Wav"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00190\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00191\ \textcolor{preprocessor}{\ \ \{\ "{}-\/warp\_type"{},\ \(\backslash\)}}
\DoxyCodeLine{00192\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRING,\ \(\backslash\)}}
\DoxyCodeLine{00193\ \textcolor{preprocessor}{\ \ \ \ DEFAULT\_WARP\_TYPE,\ \(\backslash\)}}
\DoxyCodeLine{00194\ \textcolor{preprocessor}{\ \ \ \ "{}Warping\ function\ type\ (or\ shape)"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00195\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00196\ \textcolor{preprocessor}{\ \ \{\ "{}-\/warp\_params"{},\ \(\backslash\)}}
\DoxyCodeLine{00197\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRING,\ \(\backslash\)}}
\DoxyCodeLine{00198\ \textcolor{preprocessor}{\ \ \ \ NULL,\ \(\backslash\)}}
\DoxyCodeLine{00199\ \textcolor{preprocessor}{\ \ \ \ "{}Parameters\ defining\ the\ warping\ function"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00200\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00201\ \textcolor{preprocessor}{\ \ \{\ "{}-\/dither"{},\ \(\backslash\)}}
\DoxyCodeLine{00202\ \textcolor{preprocessor}{\ \ \ \ ARG\_BOOLEAN,\ \(\backslash\)}}
\DoxyCodeLine{00203\ \textcolor{preprocessor}{\ \ \ \ "{}no"{},\ \(\backslash\)}}
\DoxyCodeLine{00204\ \textcolor{preprocessor}{\ \ \ \ "{}Add\ 1/2-\/bit\ noise"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00205\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00206\ \textcolor{preprocessor}{\ \ \{\ "{}-\/seed"{},\ \(\backslash\)}}
\DoxyCodeLine{00207\ \textcolor{preprocessor}{\ \ \ \ ARG\_INT32,\ \(\backslash\)}}
\DoxyCodeLine{00208\ \textcolor{preprocessor}{\ \ \ \ ARG\_STRINGIFY(SEED),\ \(\backslash\)}}
\DoxyCodeLine{00209\ \textcolor{preprocessor}{\ \ \ \ "{}Seed\ for\ random\ number\ generator;\ if\ less\ than\ zero,\ pick\ our\ own"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00210\ \textcolor{preprocessor}{\ \ \ \(\backslash\)}}
\DoxyCodeLine{00211\ \textcolor{preprocessor}{\ \ \{\ "{}-\/remove\_dc"{},\ \(\backslash\)}}
\DoxyCodeLine{00212\ \textcolor{preprocessor}{\ \ \ \ ARG\_BOOLEAN,\ \(\backslash\)}}
\DoxyCodeLine{00213\ \textcolor{preprocessor}{\ \ \ \ "{}no"{},\ \(\backslash\)}}
\DoxyCodeLine{00214\ \textcolor{preprocessor}{\ \ \ \ "{}Remove\ DC\ offset\ from\ each\ frame"{}\ \},\ \(\backslash\)}}
\DoxyCodeLine{00215\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}}
\DoxyCodeLine{00216\ \textcolor{preprocessor}{\ \ \{\ "{}-\/verbose"{},\ \(\backslash\)}}
\DoxyCodeLine{00217\ \textcolor{preprocessor}{\ \ \ \ ARG\_BOOLEAN,\ \(\backslash\)}}
\DoxyCodeLine{00218\ \textcolor{preprocessor}{\ \ \ \ "{}no"{},\ \(\backslash\)}}
\DoxyCodeLine{00219\ \textcolor{preprocessor}{\ \ \ \ "{}Show\ input\ filenames"{}\ \}\ \(\backslash\)}}
\DoxyCodeLine{00220\ \textcolor{preprocessor}{\ \ }}
\DoxyCodeLine{00221\ \ \ }
\DoxyCodeLine{00222\ \textcolor{preprocessor}{\#ifdef\ FIXED\_POINT}}
\DoxyCodeLine{00224\ \textcolor{keyword}{typedef}\ fixed32\ mfcc\_t;}
\DoxyCodeLine{00225\ }
\DoxyCodeLine{00227\ \textcolor{preprocessor}{\#define\ FLOAT2MFCC(x)\ FLOAT2FIX(x)}}
\DoxyCodeLine{00229\ \textcolor{preprocessor}{\#define\ MFCC2FLOAT(x)\ FIX2FLOAT(x)}}
\DoxyCodeLine{00231\ \textcolor{preprocessor}{\#define\ MFCCMUL(a,b)\ FIXMUL(a,b)}}
\DoxyCodeLine{00232\ \textcolor{preprocessor}{\#define\ MFCCLN(x,in,out)\ FIXLN\_ANY(x,in,out)}}
\DoxyCodeLine{00233\ \textcolor{preprocessor}{\#else\ }\textcolor{comment}{/*\ !FIXED\_POINT\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00234\ }
\DoxyCodeLine{00236\ \textcolor{keyword}{typedef}\ float32\ mfcc\_t;}
\DoxyCodeLine{00238\ \textcolor{preprocessor}{\#define\ FLOAT2MFCC(x)\ (x)}}
\DoxyCodeLine{00240\ \textcolor{preprocessor}{\#define\ MFCC2FLOAT(x)\ (x)}}
\DoxyCodeLine{00242\ \textcolor{preprocessor}{\#define\ MFCCMUL(a,b)\ ((a)*(b))}}
\DoxyCodeLine{00243\ \textcolor{preprocessor}{\#define\ MFCCLN(x,in,out)\ log(x)}}
\DoxyCodeLine{00244\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ !FIXED\_POINT\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00245\ }
\DoxyCodeLine{00249\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }fe\_s\ fe\_t;}
\DoxyCodeLine{00250\ }
\DoxyCodeLine{00254\ \textcolor{keyword}{enum}\ fe\_error\_e\ \{}
\DoxyCodeLine{00255\ \ \ \ \ \ \ \ \ FE\_SUCCESS\ =\ 0,}
\DoxyCodeLine{00256\ \ \ \ \ \ \ \ \ FE\_OUTPUT\_FILE\_SUCCESS\ \ =\ 0,}
\DoxyCodeLine{00257\ \ \ \ \ \ \ \ \ FE\_CONTROL\_FILE\_ERROR\ =\ -\/1,}
\DoxyCodeLine{00258\ \ \ \ \ \ \ \ \ FE\_START\_ERROR\ =\ -\/2,}
\DoxyCodeLine{00259\ \ \ \ \ \ \ \ \ FE\_UNKNOWN\_SINGLE\_OR\_BATCH\ =\ -\/3,}
\DoxyCodeLine{00260\ \ \ \ \ \ \ \ \ FE\_INPUT\_FILE\_OPEN\_ERROR\ =\ -\/4,}
\DoxyCodeLine{00261\ \ \ \ \ \ \ \ \ FE\_INPUT\_FILE\_READ\_ERROR\ =\ -\/5,}
\DoxyCodeLine{00262\ \ \ \ \ \ \ \ \ FE\_MEM\_ALLOC\_ERROR\ =\ -\/6,}
\DoxyCodeLine{00263\ \ \ \ \ \ \ \ \ FE\_OUTPUT\_FILE\_WRITE\_ERROR\ =\ -\/7,}
\DoxyCodeLine{00264\ \ \ \ \ \ \ \ \ FE\_OUTPUT\_FILE\_OPEN\_ERROR\ =\ -\/8,}
\DoxyCodeLine{00265\ \ \ \ \ \ \ \ \ FE\_ZERO\_ENERGY\_ERROR\ =\ -\/9,}
\DoxyCodeLine{00266\ \ \ \ \ \ \ \ \ FE\_INVALID\_PARAM\_ERROR\ =\ \ -\/10}
\DoxyCodeLine{00267\ \};}
\DoxyCodeLine{00268\ }
\DoxyCodeLine{00276\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00277\ fe\_t*\ fe\_init\_auto(\textcolor{keywordtype}{void});}
\DoxyCodeLine{00278\ }
\DoxyCodeLine{00286\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00287\ arg\_t\ \textcolor{keyword}{const}\ *fe\_get\_args(\textcolor{keywordtype}{void});}
\DoxyCodeLine{00288\ }
\DoxyCodeLine{00299\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00300\ fe\_t\ *fe\_init\_auto\_r(cmd\_ln\_t\ *config);}
\DoxyCodeLine{00301\ }
\DoxyCodeLine{00309\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00310\ \textcolor{keyword}{const}\ cmd\_ln\_t\ *fe\_get\_config(fe\_t\ *fe);}
\DoxyCodeLine{00311\ }
\DoxyCodeLine{00316\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00317\ \textcolor{keywordtype}{int}\ fe\_start\_utt(fe\_t\ *fe);}
\DoxyCodeLine{00318\ }
\DoxyCodeLine{00331\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00332\ \textcolor{keywordtype}{int}\ fe\_get\_output\_size(fe\_t\ *fe);}
\DoxyCodeLine{00333\ }
\DoxyCodeLine{00346\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00347\ \textcolor{keywordtype}{void}\ fe\_get\_input\_size(fe\_t\ *fe,\ \textcolor{keywordtype}{int}\ *out\_frame\_shift,}
\DoxyCodeLine{00348\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ *out\_frame\_size);}
\DoxyCodeLine{00349\ }
\DoxyCodeLine{00364\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00365\ \textcolor{keywordtype}{int}\ fe\_end\_utt(fe\_t\ *fe,\ mfcc\_t\ *out\_cepvector,\ int32\ *out\_nframes);}
\DoxyCodeLine{00366\ }
\DoxyCodeLine{00372\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00373\ fe\_t\ *fe\_retain(fe\_t\ *fe);}
\DoxyCodeLine{00374\ }
\DoxyCodeLine{00382\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00383\ \textcolor{keywordtype}{int}\ fe\_free(fe\_t\ *fe);}
\DoxyCodeLine{00384\ }
\DoxyCodeLine{00393\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00394\ \textcolor{keywordtype}{int}\ fe\_process\_frame(fe\_t\ *fe,\ int16\ \textcolor{keyword}{const}\ *spch,}
\DoxyCodeLine{00395\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ nsamps,\ mfcc\_t\ *out\_cep);}
\DoxyCodeLine{00396\ }
\DoxyCodeLine{00444\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00445\ \textcolor{keywordtype}{int}\ fe\_process\_frames(fe\_t\ *fe,}
\DoxyCodeLine{00446\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int16\ \textcolor{keyword}{const}\ **inout\_spch,}
\DoxyCodeLine{00447\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{size\_t}\ *inout\_nsamps,}
\DoxyCodeLine{00448\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ mfcc\_t\ **buf\_cep,}
\DoxyCodeLine{00449\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ *inout\_nframes);}
\DoxyCodeLine{00450\ }
\DoxyCodeLine{00466\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00467\ \textcolor{keywordtype}{int}\ fe\_process\_utt(fe\_t\ *fe,\ \ }
\DoxyCodeLine{00468\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int16\ \textcolor{keyword}{const}\ *spch,\ }
\DoxyCodeLine{00469\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{size\_t}\ nsamps,\ }
\DoxyCodeLine{00470\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ mfcc\_t\ ***cep\_block,\ }
\DoxyCodeLine{00471\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ *nframes\ }
\DoxyCodeLine{00472\ \ \ \ \ \ \ \ \ );}
\DoxyCodeLine{00473\ }
\DoxyCodeLine{00477\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00478\ \textcolor{keywordtype}{void}\ fe\_free\_2d(\textcolor{keywordtype}{void}\ *arr);}
\DoxyCodeLine{00479\ }
\DoxyCodeLine{00483\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00484\ \textcolor{keywordtype}{int}\ fe\_mfcc\_to\_float(fe\_t\ *fe,}
\DoxyCodeLine{00485\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ mfcc\_t\ **input,}
\DoxyCodeLine{00486\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ float32\ **output,}
\DoxyCodeLine{00487\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ nframes);}
\DoxyCodeLine{00488\ }
\DoxyCodeLine{00492\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00493\ \textcolor{keywordtype}{int}\ fe\_float\_to\_mfcc(fe\_t\ *fe,}
\DoxyCodeLine{00494\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ float32\ **input,}
\DoxyCodeLine{00495\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ mfcc\_t\ **output,}
\DoxyCodeLine{00496\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ nframes);}
\DoxyCodeLine{00497\ }
\DoxyCodeLine{00521\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00522\ \textcolor{keywordtype}{int}\ fe\_logspec\_to\_mfcc(fe\_t\ *fe,\ \ }
\DoxyCodeLine{00523\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ mfcc\_t\ *fr\_spec,\ }
\DoxyCodeLine{00524\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ mfcc\_t\ *fr\_cep\ }
\DoxyCodeLine{00525\ \ \ \ \ \ \ \ \ );}
\DoxyCodeLine{00526\ }
\DoxyCodeLine{00535\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00536\ \textcolor{keywordtype}{int}\ fe\_logspec\_dct2(fe\_t\ *fe,\ \ }
\DoxyCodeLine{00537\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ mfcc\_t\ *fr\_spec,\ }
\DoxyCodeLine{00538\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ mfcc\_t\ *fr\_cep\ }
\DoxyCodeLine{00539\ \ \ \ \ \ \ \ \ );}
\DoxyCodeLine{00540\ }
\DoxyCodeLine{00549\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00550\ \textcolor{keywordtype}{int}\ fe\_mfcc\_dct3(fe\_t\ *fe,\ \ }
\DoxyCodeLine{00551\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ mfcc\_t\ *fr\_cep,\ }
\DoxyCodeLine{00552\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ mfcc\_t\ *fr\_spec\ }
\DoxyCodeLine{00553\ \ \ \ \ \ \ \ \ );}
\DoxyCodeLine{00554\ }
\DoxyCodeLine{00555\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00556\ \}}
\DoxyCodeLine{00557\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00558\ }
\DoxyCodeLine{00559\ }
\DoxyCodeLine{00560\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
