Lines Matching defs:SpeexPreprocessState_
181 struct SpeexPreprocessState_ { struct
183 int frame_size; /**< Number of samples processed each time */
184 int ps_size; /**< Number of points in the power spectrum */
185 int sampling_rate; /**< Sampling rate of the input/output */
186 int nbands;
187 FilterBank *bank;
190 int denoise_enabled;
191 int vad_enabled;
192 int dereverb_enabled;
193 spx_word16_t reverb_decay;
194 spx_word16_t reverb_level;
195 spx_word16_t speech_prob_start;
196 spx_word16_t speech_prob_continue;
197 int noise_suppress;
198 int echo_suppress;
199 int echo_suppress_active;
200 SpeexEchoState *echo_state;
202 spx_word16_t speech_prob; /**< Probability last frame was speech */
205 spx_word16_t *frame; /**< Processing frame (2*ps_size) */
206 spx_word16_t *ft; /**< Processing frame in freq domain (2*ps_size) */
207 spx_word32_t *ps; /**< Current power spectrum */
208 spx_word16_t *gain2; /**< Adjusted gains */
209 spx_word16_t *gain_floor; /**< Minimum gain allowed */
210 spx_word16_t *window; /**< Analysis/Synthesis window */
211 spx_word32_t *noise; /**< Noise estimate */
212 spx_word32_t *reverb_estimate; /**< Estimate of reverb energy */
213 spx_word32_t *old_ps; /**< Power spectrum for last frame */
214 spx_word16_t *gain; /**< Ephraim Malah gain */
215 spx_word16_t *prior; /**< A-priori SNR */
216 spx_word16_t *post; /**< A-posteriori SNR */
218 spx_word32_t *S; /**< Smoothed power spectrum */
219 spx_word32_t *Smin; /**< See Cohen paper */
220 spx_word32_t *Stmp; /**< See Cohen paper */
221 int *update_prob; /**< Probability of speech presence for noise update */
223 spx_word16_t *zeta; /**< Smoothed a priori SNR */
224 spx_word32_t *echo_noise;
225 spx_word32_t *residual_echo;
228 spx_word16_t *inbuf; /**< Input buffer (overlapped analysis) */
229 spx_word16_t *outbuf; /**< Output buffer (for overlap and add) */
233 int agc_enabled;
234 float agc_level;
235 float loudness_accum;
236 float *loudness_weight; /**< Perceptual loudness curve */
237 float loudness; /**< Loudness estimate */
238 float agc_gain; /**< Current AGC gain */
239 float max_gain; /**< Maximum gain allowed */
240 float max_increase_step; /**< Maximum increase in gain from one frame to another */
241 float max_decrease_step; /**< Maximum decrease in gain from one frame to another */
242 float prev_loudness; /**< Loudness of previous frame */
243 float init_max; /**< Current gain limit during initialisation */
245 int nb_adapt; /**< Number of frames used for adaptation so far */
246 int was_speech;
247 int min_count; /**< Number of frames processed so far */
248 void *fft_lookup; /**< Lookup table for the FFT */
250 int frame_shift;