-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.h
46 lines (38 loc) · 1.32 KB
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef MAIN_H
#define MAIN_H
/**********************
*config the srp-phat*/
/**********************/
#define WAV_SIZE 46797
#define FrameSize 4096 //每一帧数据个数
#define MIC 16 //麦克风数量
#define MIC_PAIR 120
#define SERCH_theta_num 180 //水平角方向搜索步长
#define SERCH_phi_num 6 //垂直角方向搜索步长 暂时假设垂直方向只要0~90度
#define SERCH_r_num 6 //r方向搜索点数
#define SERCH_POINT 6480
#define FS 16000 //采样率
#define C 340000 //声速
/**********************
*VAD参数设置 */
/**********************/
#define a01 0.5
#define a10 0.1
#define a00 0.5 // 1 - a01;
#define a11 0.9 //1 - a10;
#define threshold 0.8 // Decision threshold of the likelihood ratio test
#define win_dur 0.256 // Window duration in seconds
#define hop_dur 0.128 //Hop duration in seconds
#define num_noise 1 //Number of noise frames at the beginning of file
#define argin 1
#define win_size 4096 //FS * win_dur
#define alpha 0.99
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795f
#endif
//float serch_r[SERCH_r_num]= {800 ,1600 ,2300 ,2900 ,3400 ,3800};//r方向的搜索点
/**********************
*要用的变量 */
/**********************/
struct objFFT* myFFT; //fft结构体
#endif