libsent/src/wav2mfcc/wav2mfcc-buffer.c File Reference

Convert speech inputs into MFCC parameter vectors (per utterance). More...

#include <sent/stddefs.h>
#include <sent/mfcc.h>

Go to the source code of this file.

Functions

int Wav2MFCC (SP16 *wave, float **mfcc, Value *para, int nSamples, MFCCWork *w)
 Convert wave data to MFCC.
void NormaliseLogE (float **mfcc, int frame_num, Value *para)
 Normalise log energy.
void Delta (float **c, int frame, Value *para)
 Calculate delta coefficients.
void Accel (float **c, int frame, Value *para)
 Calculate acceleration coefficients.
void CMN (float **mfcc, int frame_num, int dim)
 Cepstrum Mean Normalization (buffered) Cepstral mean will be computed within the given MFCC vectors.
void MVN (float **mfcc, int frame_num, Value *para)
 Cepstrum Mean/Variance Normalization (buffered).


Detailed Description

Convert speech inputs into MFCC parameter vectors (per utterance).

This file contains functions to convert the whole speech input to MFCC vector array. The frame-wise MFCC computation needed for real-time recognition is defined in wav2mfcc-pipe.c.

The supported format is MFCC[_0][_E][_D][_A][_Z].

Author:
Akinobu LEE
Date:
Thu Feb 17 17:43:35 2005
Revision
1.4

Definition in file wav2mfcc-buffer.c.


Function Documentation

int Wav2MFCC ( SP16 wave,
float **  mfcc,
Value para,
int  nSamples,
MFCCWork w 
)

Convert wave data to MFCC.

Also does spectral subtraction if ssbuf specified.

Parameters:
wave [in] waveform data
mfcc [out] buffer to store the resulting MFCC parameter vector [t][0..veclen-1], should be already allocated
para [in] configuration parameters
nSamples [in] length of waveform data
w [i/o] MFCC calculation work area
Returns:
the number of processed frames.

Definition at line 57 of file wav2mfcc-buffer.c.

Referenced by wav2mfcc().

void NormaliseLogE ( float **  mfcc,
int  frame_num,
Value para 
)

Normalise log energy.

Parameters:
mfcc [i/o] array of MFCC vectors
frame_num [in] number of frames
para [in] configuration parameters

Definition at line 110 of file wav2mfcc-buffer.c.

void Delta ( float **  c,
int  frame,
Value para 
)

Calculate delta coefficients.

Parameters:
c [i/o] MFCC vectors, in which the delta coeff. will be appended.
frame [in] number of frames
para [in] configuration parameters

Definition at line 142 of file wav2mfcc-buffer.c.

void Accel ( float **  c,
int  frame,
Value para 
)

Calculate acceleration coefficients.

Parameters:
c [i/o] MFCC vectors, in which the delta coeff. will be appended.
frame [in] number of frames
para [in] configuration parameters

Definition at line 180 of file wav2mfcc-buffer.c.

void CMN ( float **  mfcc,
int  frame_num,
int  dim 
)

Cepstrum Mean Normalization (buffered) Cepstral mean will be computed within the given MFCC vectors.

Parameters:
mfcc [i/o] array of MFCC vectors
frame_num [in] number of frames
dim [in] total dimension of MFCC vectors

Definition at line 219 of file wav2mfcc-buffer.c.

void MVN ( float **  mfcc,
int  frame_num,
Value para 
)

Cepstrum Mean/Variance Normalization (buffered).

Parameters:
mfcc [i/o] array of MFCC vectors
frame_num [in] number of frames
para [in] configuration parameters

Definition at line 248 of file wav2mfcc-buffer.c.


Generated on Thu Jul 23 12:14:20 2009 for Julius by  doxygen 1.5.1