38 #ifndef __FE_INTERNAL_H__
39 #define __FE_INTERNAL_H__
45 #include "sphinxbase/fe.h"
46 #include "sphinxbase/fixpoint.h"
49 #include "fe_prespch_buf.h"
76 float32 sampling_rate;
80 float32 lower_filt_freq;
81 float32 upper_filt_freq;
91 char const *warp_type;
92 char const *warp_params;
95 mfcc_t sqrt_inv_n, sqrt_inv_2n;
107 #define SQRT_HALF FLOAT2MFCC(0.707106781186548)
111 int16 pre_speech_frames;
112 int16 post_speech_frames;
121 float32 sampling_rate;
125 float32 window_length;
130 uint8 feature_dimension;
138 uint8 remove_silence;
140 float32 pre_emphasis_alpha;
141 int16 pre_emphasis_prior;
144 int16 num_overflow_samps;
145 size_t num_processed_samps;
152 window_t *hamming_window;
161 float32 vad_threshold;
168 powspec_t *spec, *mfspec;
169 int16 *overflow_samps;
172 void fe_init_dither(int32 seed);
175 int32 fe_dither(int16 *buffer, int32 nsamps);
178 int fe_read_frame(
fe_t *fe, int16
const *in, int32 len);
181 int fe_shift_frame(
fe_t *fe, int16
const *in, int32 len);
184 void fe_write_frame(
fe_t *fe, mfcc_t *feat, int32 store_pcm);
187 int32 fe_build_melfilters(
melfb_t *MEL_FB);
188 int32 fe_compute_melcosine(
melfb_t *MEL_FB);
189 void fe_create_hamming(window_t *in, int32 in_len);
190 void fe_create_twiddle(
fe_t *fe);
192 fixed32 fe_log_add(fixed32 x, fixed32 y);
193 fixed32 fe_log_sub(fixed32 x, fixed32 y);
196 void fe_spec2cep(
fe_t * fe,
const powspec_t * mflogspec, mfcc_t * mfcep);
197 void fe_dct2(
fe_t *fe,
const powspec_t *mflogspec, mfcc_t *mfcep,
int htk);
198 void fe_dct3(
fe_t *fe,
const mfcc_t *mfcep, powspec_t *mflogspec);
Base Struct to hold all structure for MFCC computation.
Opaque structure used to hold the results of command-line parsing.
Structure for the front-end computation.