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;
122 float32 sampling_rate;
126 float32 window_length;
131 uint8 feature_dimension;
139 uint8 remove_silence;
141 float32 pre_emphasis_alpha;
144 size_t sample_counter;
153 window_t *hamming_window;
162 float32 vad_threshold;
169 powspec_t *spec, *mfspec;
170 int16 *overflow_samps;
171 int16 num_overflow_samps;
175 void fe_init_dither(int32 seed);
178 int32 fe_dither(int16 *buffer, int32 nsamps);
181 int fe_read_frame(
fe_t *fe, int16
const *in, int32 len);
184 int fe_shift_frame(
fe_t *fe, int16
const *in, int32 len);
187 void fe_write_frame(
fe_t *fe, mfcc_t *feat, int32 store_pcm);
190 int32 fe_build_melfilters(
melfb_t *MEL_FB);
191 int32 fe_compute_melcosine(
melfb_t *MEL_FB);
192 void fe_create_hamming(window_t *in, int32 in_len);
193 void fe_create_twiddle(
fe_t *fe);
195 fixed32 fe_log_add(fixed32 x, fixed32 y);
196 fixed32 fe_log_sub(fixed32 x, fixed32 y);
199 void fe_spec2cep(
fe_t * fe,
const powspec_t * mflogspec, mfcc_t * mfcep);
200 void fe_dct2(
fe_t *fe,
const powspec_t *mflogspec, mfcc_t *mfcep,
int htk);
201 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.