123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- #ifndef cnst_vad_h
- #define cnst_vad_h "$Id $"
- #define FRAME_LEN 160
- #define COMPLEN 9
- #define INV_COMPLEN 3641
- #define LOOKAHEAD 40
- #define UNITY 512
- #define UNIRSHFT 6
- #define TONE_THR (Word16)(0.65*MAX_16)
- #define ALPHA_UP1 (Word16)((1.0 - 0.95)*MAX_16)
- #define ALPHA_DOWN1 (Word16)((1.0 - 0.936)*MAX_16)
- #define ALPHA_UP2 (Word16)((1.0 - 0.985)*MAX_16)
- #define ALPHA_DOWN2 (Word16)((1.0 - 0.943)*MAX_16)
- #define ALPHA3 (Word16)((1.0 - 0.95)*MAX_16)
- #define ALPHA4 (Word16)((1.0 - 0.9)*MAX_16)
- #define ALPHA5 (Word16)((1.0 - 0.5)*MAX_16)
- #define VAD_THR_HIGH 1260
- #define VAD_THR_LOW 720
- #define VAD_P1 0
- #define VAD_P2 6300
- #define VAD_SLOPE (Word16)(MAX_16*(float)(VAD_THR_LOW-VAD_THR_HIGH)/(float)(VAD_P2-VAD_P1))
- #define STAT_COUNT 20
- #define STAT_COUNT_BY_2 10
- #define CAD_MIN_STAT_COUNT 5
- #define STAT_THR_LEVEL 184
- #define STAT_THR 1000
- #define NOISE_MIN 40
- #define NOISE_MAX 16000
- #define NOISE_INIT 150
- #define HANG_NOISE_THR 100
- #define BURST_LEN_HIGH_NOISE 4
- #define HANG_LEN_HIGH_NOISE 7
- #define BURST_LEN_LOW_NOISE 5
- #define HANG_LEN_LOW_NOISE 4
- #define VAD_POW_LOW (Word32)15000
-
- #define POW_PITCH_THR (Word32)343040
-
- #define POW_COMPLEX_THR (Word32)15000
-
-
- #define LEVEL_SHIFT 0
- #define COEFF3 13363
- #define COEFF5_1 21955
- #define COEFF5_2 6390
- #define LTHRESH 4
- #define NTHRESH 4
- #define CVAD_THRESH_ADAPT_HIGH (Word16)(0.6 * MAX_16)
- #define CVAD_THRESH_ADAPT_LOW (Word16)(0.5 * MAX_16)
- #define CVAD_THRESH_IN_NOISE (Word16)(0.65 * MAX_16)
- #define CVAD_THRESH_HANG (Word16)(0.70 * MAX_16)
- #define CVAD_HANG_LIMIT (Word16)(100)
- #define CVAD_HANG_LENGTH (Word16)(250)
- #define CVAD_LOWPOW_RESET (Word16) (0.40 * MAX_16)
- #define CVAD_MIN_CORR (Word16) (0.40 * MAX_16)
- #define CVAD_BURST 20
- #define CVAD_ADAPT_SLOW (Word16)(( 1.0 - 0.98) * MAX_16)
- #define CVAD_ADAPT_FAST (Word16)((1.0 - 0.92) * MAX_16)
- #define CVAD_ADAPT_REALLY_FAST (Word16)((1.0 - 0.80) * MAX_16)
- #endif
|