#include <sent/stddefs.h>
#include <ctype.h>
Include dependency graph for mfcc.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | DEF_SMPPERIOD 625 |
Default sampling period in 100ns (625 = 16kHz). | |
#define | DEF_FRAMESIZE 400 |
Default Window size in samples, similar to WINDOWSIZE in HTK (unit is different). | |
#define | DEF_FFTNUM 512 |
Number of FFT steps. | |
#define | DEF_FRAMESHIFT 160 |
Default frame shift length in samples. | |
#define | DEF_PREENPH 0.97 |
Default pre-emphasis coefficient, corresponds to PREEMCOEF in HTK. | |
#define | DEF_MFCCDIM 12 |
Default number of MFCC dimension, corresponds to NUMCEPS in HTK. | |
#define | DEF_CEPLIF 22 |
Default cepstral Liftering coefficient, corresponds to CEPLIFTER in HTK. | |
#define | DEF_FBANK 24 |
Default number of filterbank channels, corresponds to NUMCHANS in HTK. | |
#define | DEF_DELWIN 2 |
Default delta window size, corresponds to DELTAWINDOW in HTK. | |
#define | DEF_ACCWIN 2 |
Default acceleration window size, corresponds to ACCWINDOW in HTK. | |
#define | DEF_SILFLOOR 50.0 |
Default energy silence floor in dBs, corresponds to SILFLOOR in HTK. | |
#define | DEF_ESCALE 0.1 |
Default scaling coefficient of log energy, corresponds to ESCALE in HTK. | |
#define | DEF_SSALPHA 2.0 |
Default alpha coefficient for spectral subtraction. | |
#define | DEF_SSFLOOR 0.5 |
Default flooring coefficient for spectral subtraction. | |
Functions | |
void | make_costbl_hamming (int framesize) |
void | make_fft_table (int n) |
void | make_costbl_makemfcc (int fbank_num, int mfcc_dim) |
void | make_sintbl_wcep (int lifter, int mfcc_dim) |
void | Hamming (float *wave, int framesize) |
void | PreEmphasise (float *wave, Value para) |
float | Mel (int k, float fres) |
FBankInfo | InitFBank (Value para) |
void | FreeFBank (FBankInfo fb) |
void | FFT (float *xRe, float *xIm, int p) |
void | MakeFBank (float *wave, double *fbank, FBankInfo info, Value para, float *ssbuf) |
void | MakeMFCC (double *fbank, float *mfcc, Value para) |
float | CalcC0 (double *fbank, Value para) |
float | CalcLogRawE (float *wave, int framesize) |
void | ZMeanFrame (float *wave, int framesize) |
void | WeightCepstrum (float *mfcc, Value para) |
void | Delta (float **c, int frame, Value para) |
void | Accel (float **c, int frame, Value para) |
void | NormaliseLogE (float **c, int frame_num, Value para) |
int | Wav2MFCC (SP16 *wave, float **mfcc, Value para, int nSamples, float *ssbuf, int ssbuflen) |
void | CMN (float **mfcc, int frame_num, int dim) |
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) |
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 () |
boolean | CMN_load_from_file (char *filename, int dim) |
boolean | CMN_save_to_file (char *filename) |
float * | new_SS_load_from_file (char *filename, int *slen) |
float * | new_SS_calculate (SP16 *wave, int wavelen, Value para, int *slen) |
libsent/src/wav2mfcc/wav2mfcc-pipe.c
julius/wav2mfcc.c
julius/realtime-1stpass.c
Definition in file mfcc.h.
|
Generate table for hamming window.
Definition at line 74 of file wav2mfcc-buffer.c. Referenced by InitFBank(), and new_SS_calculate(). |
|
Build tables for FFT.
Definition at line 105 of file wav2mfcc-buffer.c. Referenced by InitFBank(), and new_SS_calculate(). |
|
Generate table for DCT operation to make mfcc from fbank.
Definition at line 138 of file wav2mfcc-buffer.c. Referenced by InitFBank(). |
|
Generate table for weighing cepstrum.
Definition at line 176 of file wav2mfcc-buffer.c. Referenced by InitFBank(). |
|
Apply hamming window.
Definition at line 354 of file wav2mfcc-buffer.c. Referenced by new_SS_calculate(), Wav2MFCC(), and WMP_calc(). |
|
Apply pre-emphasis filter.
Definition at line 374 of file wav2mfcc-buffer.c. Referenced by new_SS_calculate(), Wav2MFCC(), and WMP_calc(). |
|
Return mel-frequency.
Definition at line 423 of file wav2mfcc-buffer.c. Referenced by InitFBank(). |
|
Build filterbank information and generate tables for MFCC comptutation.
Definition at line 435 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(), and WMP_init(). |
|
Free FBankInfo.
Definition at line 529 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(). |
|
Apply FFT
Definition at line 782 of file wav2mfcc-buffer.c. Referenced by MakeFBank(), and new_SS_calculate(). |
|
Convert wave -> (spectral subtraction) -> mel-frequency filterbank
Definition at line 547 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(), and WMP_calc(). |
|
Apply DCT to filterbank to make MFCC.
Definition at line 607 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(), and WMP_calc(). |
|
Calculate 0'th cepstral coefficient.
Definition at line 644 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(), and WMP_calc(). |
|
Calculate Log Raw Energy.
Definition at line 316 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(), and WMP_calc(). |
|
Remove DC offset per frame
Definition at line 337 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(), and WMP_calc(). |
|
Re-scale cepstral coefficients.
Definition at line 389 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(), and WMP_calc(). |
|
Calculate delta coefficients
Definition at line 695 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(). |
|
Calculate acceleration coefficients.
Definition at line 744 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(). |
|
Normalise log energy
Definition at line 663 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(). |
|
Convert wave data to MFCC. Also does spectral subtraction if ssbuf specified.
Definition at line 217 of file wav2mfcc-buffer.c. Referenced by new_wav2mfcc(). |
|
Cepstrum Mean Normalization (buffered) Cepstral mean will be computed within the given MFCC vectors.
Definition at line 835 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(). |
|
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(). |
|
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(). |
|
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(). |
|
Load a noise spectrum from file.
Definition at line 65 of file ss.c. Referenced by new_wav2mfcc(), and RealTimeInit(). |
|
Compute average spectrum of audio input. This is used to estimate a noise spectrum from input samples.
Definition at line 109 of file ss.c. Referenced by new_wav2mfcc(). |