forked from zabir-nabil/bangla-tts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
30 lines (26 loc) · 1.06 KB
/
config.py
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
# python 3.6
# github/zabir-nabil
# signal processing
sr = 22050 # more data, test # 48000 # 22050 # Sampling rate.
n_fft = 2048 # fft points (samples)
frame_shift = 0.0125 # seconds
frame_length = 0.05 # seconds
hop_length = int(sr * frame_shift) # samples. =276.
win_length = int(sr * frame_length) # samples. =1102.
n_mels = 80 # Number of Mel banks to generate
power = 1.5 # Exponent for amplifying the predicted magnitude
n_iter = 50 # Number of inversion iterations
preemphasis = .97
max_db = 100
ref_db = 20
# Model
r = 4 # Reduction factor. Do not change this.
dropout_rate = 0.05
e = 128 # == embedding
d = 256 # == hidden units of Text2Mel
c = 512 # 512 # == hidden units of SSRN
attention_win_size = 3
# synthesis
vocab = "PE &্0123456789অoোyয়ওঐৌৈঔüuুwউঊূaাআàâeèéেêএিইঈীiংঙঞঃশষসsহhণনnটtঠডdঢৎতথদধপpফfবbভvমmলlযঝজjzছচcxকkqখগgঘঋৃড়rর" # P: Padding, E: EOS.
max_N = 180 # Maximum number of characters.
max_T = 210 # Maximum number of mel frames.