-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
38 lines (36 loc) · 817 Bytes
/
config.js
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
const CHANNELS = 1;
const SAMPLE_RATE = 44100
const TO_SAMPLE_RATE = 8000
const BUFFER_SIZE = 1024
const MIN_BUFFER_SIZE = 320
const MAX_BUFFER_SIZE = 512
const REFIL_BUFFER_SIZE = (TO_SAMPLE_RATE * 0.02375)
const SPEEX_CONFIG = {
quality: 8,
// mode: 1,
complexity: 9,
enhancement: true,
vad: true,
vbr: true,
abr: 0,
vbr_quality: 9,
dtx: false,
preprocess: false,
pp_vad: true,
pp_agc: true,
pp_agc_level: 8000,
pp_denoise: true,
pp_dereverb: false,
pp_dereverb_decay: 0.4,
pp_dereverb_level: 0.3,
experimental_rtcp_feedback: false
}
const USER_CONSTRAINTS = {
audio: {
sampleRate: SAMPLE_RATE,
channelCount: CHANNELS,
echoCancellation: true,
noiseSuppression: true,
autoGainControl: false
}
}