FE_pitch.h
上传用户:italyroyal
上传日期:2013-05-06
资源大小:473k
文件大小:1k
- ///////////////////////////////////////////////////////////////////////////////
- // This is a part of the Feature program.
- // Version: 1.0
- // Date: February 22, 2003
- // Programmer: Oh-Wook Kwon
- // Copyright(c) 2003 Oh-Wook Kwon. All rights reserved. owkwon@ucsd.edu
- ///////////////////////////////////////////////////////////////////////////////
- #ifndef _FE_PITCH_H_
- #define _FE_PITCH_H_
- /**************************************************************
- * for pitch
- **************************************************************/
- #define MAX_PITCH_FREQ 500 /* 500Hz (20 ms) angry speech may have very high pitch */
- #define MIN_PITCH_FREQ 50 /* 50Hz (200 ms) */
- #define MAX_PITCH_CHANGE 0.15 /* for smooth pitch contour (for 10 ms) */
- #define MAX_PITCH_CHANGE_POSTPROC 0.10 /* for spike removal (for 10 ms) */
- #define PITCH_BUF_SIZE 7 /* use 7 frame buffer */
- #define F0_SHARP_TH_1 1.0
- #define F0_SHARP_TH_2 0.6
- #define F0_DOUBLE_TH 0.2 // org 0.2
- #define F0_HALVE_TH 0.5 // org 0.5
- #define F0_NO_DOUBLE_TH 1.2
- #define F0_NO_HALVE_TH 1.5
- #define F0_DOUBLE_FREQ_TH 250
- #define F0_HALVE_FREQ_TH 80
- #define lambdaPitchTrack 0.90
- #endif