#include <sent/stddefs.h>
#include <sent/mfcc.h>
Include dependency graph for wav2mfcc-pipe.c:
Go to the source code of this file.
Defines | |
#define | CPMAX 500 |
Maximum number of frames to store ceptral mean for CMN update. | |
#define | CPSTEP 5 |
clist allocate step | |
Functions | |
void | WMP_init (Value para, float **bf, float *ssbuf, int ssbuflen) |
void | WMP_calc (float *mfcc, float *bf, Value para, float *ssbuf) |
DeltaBuf * | WMP_deltabuf_new (int veclen, int windowlen) |
void | WMP_deltabuf_free (DeltaBuf *db) |
void | WMP_deltabuf_prepare (DeltaBuf *db) |
static void | WMP_deltabuf_calc (DeltaBuf *db, int cur) |
boolean | WMP_deltabuf_proceed (DeltaBuf *db, float *new_mfcc) |
boolean | WMP_deltabuf_flush (DeltaBuf *db) |
void | CMN_realtime_init (int dimension, float weight) |
void | CMN_realtime_prepare () |
void | CMN_realtime (float *mfcc, int dim) |
void | CMN_realtime_update () |
static boolean | myread (void *buf, size_t unitbyte, int unitnum, FILE *fp) |
static boolean | mywrite (void *buf, size_t unitbyte, int unitnum, int fd) |
boolean | CMN_load_from_file (char *filename, int dim) |
boolean | CMN_save_to_file (char *filename) |
Variables | |
static double * | fbank |
Local buffer to hold filterbank. | |
static FBankInfo | fb |
Local buffer to hold filterbank information. | |
static CMEAN * | clist |
List of MFCC sum for previous inputs. | |
static int | clist_max |
Allocated number of CMEAN in clist. | |
static int | clist_num |
Currentlly filled CMEAN in clist. | |
static int | dim |
Local workarea to store the number of MFCC dimension. | |
static float | cweight |
Weight of initial cepstral mean. | |
static float * | cmean_init |
Initial cepstral mean for each input. | |
static boolean | cmean_init_set |
TRUE if cmean_init was set. | |
static CMEAN | now |
Work area to hold current cepstral mean. |
Definition in file wav2mfcc-pipe.c.
|
initialize and setup buffers for a MFCC computataion.
Definition at line 60 of file wav2mfcc-pipe.c. Referenced by RealTimeInit(). |
|
Calculate MFCC and log energy for one frame. Perform spectral subtraction if ssbuf is specified.
Definition at line 95 of file wav2mfcc-pipe.c. Referenced by RealTimePipeLine(). |
|
Allocate a new delta cycle buffer.
Definition at line 141 of file wav2mfcc-pipe.c. Referenced by RealTimeInit(). |
|
Destroy the delta cycle buffer.
Definition at line 168 of file wav2mfcc-pipe.c. |
|
Reset and clear the delta cycle buffer.
Definition at line 186 of file wav2mfcc-pipe.c. Referenced by RealTimePipeLinePrepare(). |
|
Calculate delta coefficients of the specified point in the cycle buffer.
Definition at line 202 of file wav2mfcc-pipe.c. Referenced by WMP_deltabuf_proceed(). |
|
Store the given MFCC vector into the delta cycle buffer, and compute the latest delta coefficients.
Definition at line 245 of file wav2mfcc-pipe.c. Referenced by RealTimeParam(), and RealTimePipeLine(). |
|
Flush the delta cycle buffer the delta coefficients left in the cycle buffer.
Definition at line 287 of file wav2mfcc-pipe.c. Referenced by RealTimeParam(). |
|
Initialize MAP-CMN at startup.
Definition at line 348 of file wav2mfcc-pipe.c. Referenced by RealTimeInit(). |
|
Prepare for MAP-CMN at start of each input Definition at line 375 of file wav2mfcc-pipe.c. Referenced by RealTimePipeLinePrepare(). |
|
Perform MAP-CMN for incoming MFCC vectors
Definition at line 390 of file wav2mfcc-pipe.c. Referenced by RealTimeParam(), and RealTimePipeLine(). |
|
Update initial cepstral mean from previous utterances for next input. Definition at line 418 of file wav2mfcc-pipe.c. Referenced by RealTimeCMNUpdate(). |
|
Read binary with byte swap (assume file is Big Endian)
Definition at line 472 of file wav2mfcc-pipe.c. |
|
Write binary with byte swap (assume data is Big Endian)
Definition at line 494 of file wav2mfcc-pipe.c. |
|
Load CMN parameter from file. If the number of MFCC dimension in the file does not match the specified one, an error will occur.
Definition at line 518 of file wav2mfcc-pipe.c. Referenced by RealTimeInit(). |
|
Save the current CMN vector to a file.
Definition at line 562 of file wav2mfcc-pipe.c. Referenced by RealTimeCMNUpdate(). |