1/*---------------------------------------------------------------------------*
2 *  frontpar.h  *
3 *                                                                           *
4 *  Copyright 2007, 2008 Nuance Communciations, Inc.                               *
5 *                                                                           *
6 *  Licensed under the Apache License, Version 2.0 (the 'License');          *
7 *  you may not use this file except in compliance with the License.         *
8 *                                                                           *
9 *  You may obtain a copy of the License at                                  *
10 *      http://www.apache.org/licenses/LICENSE-2.0                           *
11 *                                                                           *
12 *  Unless required by applicable law or agreed to in writing, software      *
13 *  distributed under the License is distributed on an 'AS IS' BASIS,        *
14 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
15 *  See the License for the specific language governing permissions and      *
16 *  limitations under the License.                                           *
17 *                                                                           *
18 *---------------------------------------------------------------------------*/
19
20
21
22#ifndef _h_frontpar_
23#define _h_frontpar_
24
25#include "hmm_type.h"
26
27/**
28 * @todo document
29 */
30typedef struct
31{
32  int  ca_rtti;
33  booldata    is_loaded;
34  int   mel_dim;
35  int   samplerate;
36  float window_factor;
37  float pre_mel;
38  int   low_cut;
39  int   high_cut;
40  ESR_BOOL  do_skip_even_frames;
41  ESR_BOOL  do_smooth_c0;
42  float offset;
43  ESR_BOOL  do_dd_mel;
44  int   forget_factor;            /* preserve % of previous hist */
45  int   sv6_margin;
46  ESR_BOOL  do_rastac0;           /* rasta c0 is skipped if false. Don't really need this now.    */
47  ESR_BOOL  do_spectral_sub;
48  int   spectral_sub_frame_dur;
49  float spec_sub_scale;
50  ESR_BOOL  do_filterbank_dump;
51  ESR_BOOL  do_filterbank_input;
52  int   num_fb_to_use;
53  int   lpc_order;
54  float peakpickup;
55  float peakpickdown;
56  float warp_scale;                      /*## */
57  float piecewise_start;                      /*## */
58  int melA_scale[MAX_CEP_DIM];
59  int melB_scale[MAX_CEP_DIM];
60  int dmelA_scale[MAX_CEP_DIM];
61  int dmelB_scale[MAX_CEP_DIM];
62  int ddmelA_scale[MAX_CEP_DIM];
63  int ddmelB_scale[MAX_CEP_DIM];
64  int rastaA_scale[MAX_CEP_DIM];
65  int rastaB_scale[MAX_CEP_DIM];
66  int mel_offset[MAX_CHAN_DIM];
67  int mel_loop[MAX_CHAN_DIM];
68  int   spectrum_filter_freq[MAX_FILTER_NUM];
69  int   spectrum_filter_spread[MAX_FILTER_NUM];
70  int   voice_margin;
71  int   fast_voice_margin;
72  int   tracker_margin;
73  int   voice_duration;
74  int   quiet_duration;
75  int   unsure_duration;
76  int   start_windback;
77  int   high_clip;
78  int   low_clip;
79  int   max_per10000_clip;
80  int   max_dc_offset;
81  int   high_noise_level_bit;
82  int   low_speech_level_bit;
83  int   min_samples;
84}
85front_parameters;
86
87#endif /*_h_frontpar_ */
88
89
90