#include <sent/stddefs.h>
#include <sent/mfcc.h>
Include dependency graph for wav2mfcc-buffer.c:
Go to the source code of this file.
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) |
int | Wav2MFCC (SP16 *wave, float **mfcc, Value para, int nSamples, float *ssbuf, int ssbuflen) |
float | CalcLogRawE (float *wave, int framesize) |
void | ZMeanFrame (float *wave, int framesize) |
void | Hamming (float *wave, int framesize) |
void | PreEmphasise (float *wave, Value para) |
void | WeightCepstrum (float *mfcc, Value para) |
float | Mel (int k, float fres) |
FBankInfo | InitFBank (Value para) |
void | FreeFBank (FBankInfo fb) |
void | MakeFBank (float *wave, double *fbank, FBankInfo fb, Value para, float *ssbuf) |
void | MakeMFCC (double *fbank, float *mfcc, Value para) |
float | CalcC0 (double *fbank, Value para) |
void | NormaliseLogE (float **mfcc, int frame_num, Value para) |
void | Delta (float **c, int frame, Value para) |
void | Accel (float **c, int frame, Value para) |
void | FFT (float *xRe, float *xIm, int p) |
void | CMN (float **mfcc, int frame_num, int dim) |
Variables | |
static double * | costbl_hamming |
Cos table for hamming window. | |
static int | costbl_hamming_len = 0 |
Length of above. | |
static double * | costbl_fft |
Cos table for FFT. | |
static double * | sintbl_fft |
Sin table for FFT. | |
static int | tbllen = 0 |
Length of above. | |
static double * | costbl_makemfcc |
Cos table for DCT. | |
static int | costbl_makemfcc_len = 0 |
Length of above. | |
static double * | sintbl_wcep |
Sin table for cepstrum weighting. | |
static int | sintbl_wcep_len = 0 |
Length of above. | |
static float | sqrt2var |
Work area that holds value of sqrt(2.0) / fbank_num. |
The supported format is MFCC[_0][_E][_D][_A][_Z].
Definition in file wav2mfcc-buffer.c.
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
Re-scale cepstral coefficients.
Definition at line 389 of file wav2mfcc-buffer.c. Referenced by 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(). |
|
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(). |
|
Normalise log energy
Definition at line 663 of file wav2mfcc-buffer.c. Referenced by Wav2MFCC(). |
|
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(). |
|
Apply FFT
Definition at line 782 of file wav2mfcc-buffer.c. Referenced by MakeFBank(), and new_SS_calculate(). |
|
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(). |