forked from espeak-ng/espeak-ng
/
ph_estonian
410 lines (327 loc) · 6.24 KB
/
ph_estonian
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
//====================================================
// Estonian
//====================================================
phoneme : // Lengthen previous vowel by "length"
virtual
length 160
endphoneme
phoneme a
vwl starttype #a endtype #a
length 170
// ChangeIfUnstressed(A)
FMT(vowel/aa_9)
endphoneme
phoneme a:
vwl starttype #a endtype #a
length 340
FMT(vowel/aa)
endphoneme
//phoneme A
// vwl starttype #a endtype #a
// length 170
// FMT(vowel/a#_2)
//endphoneme
phoneme A1
vwl starttype #a endtype #a
length 255
FMT(vowel/aa_8)
endphoneme
phoneme e
vwl starttype #e endtype #e
length 160
// ChangeIfUnstressed(E)
FMT(vowel/e#)
endphoneme
phoneme e:
vwl starttype #e endtype #e
length 320
FMT(vowel/e_7)
endphoneme
//phoneme E
// vwl starttype #e endtype #e
// length 160
// FMT(vowel/ee_4)
//endphoneme
phoneme E1
vwl starttype #e endtype #e
length 240
FMT(vowel/ee#_2)
endphoneme
phoneme i
vwl starttype #i endtype #i
length 140
// ChangeIfUnstressed(I)
FMT(vowel/i_8)
endphoneme
phoneme i:
vwl starttype #i endtype #i
length 280
FMT(vowel/i_7)
endphoneme
//phoneme I
// vwl starttype #i endtype #i
// length 140
// FMT(vowel/i_3)
//endphoneme
phoneme I1
vwl starttype #i endtype #i
length 210
FMT(vowel/ii_3)
endphoneme
phoneme i1
vwl starttype #i endtype #i
length 30
FMT(vowel/i#_7)
endphoneme
phoneme o
vwl starttype #o endtype #o
length 160
// ChangeIfUnstressed(O)
FMT(vowel/o_mid)
endphoneme
phoneme o:
vwl starttype #o endtype #o
length 320
FMT(vowel/o)
endphoneme
//phoneme O
// vwl starttype #o endtype #o
// length 150
// FMT(vowel/o_mid)
//endphoneme
phoneme O1
vwl starttype #o endtype #o
length 225
FMT(vowel/oo_4)
endphoneme
phoneme u
vwl starttype #u endtype #u
length 145
// ChangeIfUnstressed(U)
FMT(vowel/u_bck2)
endphoneme
phoneme u: // TEST
vwl starttype #u endtype #u
length 290
FMT(vowel/u_bck3)
endphoneme
//phoneme U // TEST
// vwl starttype #u endtype #u
// length 145
// FMT(vowel/u_5)
//endphoneme
phoneme U1 // TEST
vwl starttype #u endtype #u
length 218
FMT(vowel/u_5)
endphoneme
// õ
phoneme 8
vwl starttype #@ endtype #@
length 165
FMT(vowel/8_7)
endphoneme
phoneme 8:
vwl starttype #@ endtype #@
length 330
FMT(vowel/8_4)
endphoneme
// ä
phoneme &
vwl starttype #a endtype #a
length 175
FMT(vowel/&)
endphoneme
phoneme &:
vwl starttype #a endtype #a
length 350
FMT(vowel/&)
endphoneme
// ö
phoneme Y
vwl starttype #@ endtype #@
length 165
FMT(vowel/y#)
endphoneme
phoneme Y:
vwl starttype #@ endtype #@
length 330
FMT(vowel/y#)
endphoneme
// ü
phoneme y
vwl starttype #u endtype #u
length 145
FMT(vowel/y)
endphoneme
phoneme y:
vwl starttype #u endtype #u
length 290
FMT(vowel/y)
endphoneme
// Diphthongs
//===========
phoneme &i
vwl starttype #a endtype #i
length 315
lng
FMT(vdiph/&i)
endphoneme
phoneme Yi
vwl starttype #@ endtype #i
length 305
lng
FMT(vdiph/@i)
endphoneme
phoneme yi
vwl starttype #u endtype #i
length 285
lng
FMT(vdiph/yi)
endphoneme
// phoneme oe
// phoneme ue
// phoneme qe
// phoneme xe
// phoneme ce
// phoneme qa
// phoneme ca
//phoneme 8u
// vwl starttype #@ endtype #u
// length 310
// lng
// FMT(vdiph/8u)
//endphoneme
// phoneme xu
// CONSONANTS
//===========
phoneme v // approximant, not fricative
vcd lbd frc
lengthmod 6
voicingswitch f
Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50
IF nextPh(isPause2) THEN
FMT(voc/v_)
ENDIF
FMT(voc/v)
endphoneme
phoneme t // dental variant of /t/
vls dnt stp lengthenstop
voicingswitch d
lengthmod 5
Vowelin f1=1 f2=1500 -250 250 f3=-100 80 amp=20
Vowelout f1=0 f2=1500 -300 250 f3=-100 80 rms=20
IF nextPh(isPause2) THEN
WAV(ustop/t_dnt, 60)
ENDIF
WAV(ustop/t_hi, 80)
endphoneme
phoneme d
vcd dnt stp
voicingswitch t
lengthmod 5
Vowelin f1=2 f2=1700 -100 200 f3=0 80
Vowelout f1=2 f2=1700 -100 200 f3=0 80 rms=20
IF PreVoicing THEN
FMT(d/xd)
ENDIF
IF nextPh(isPause2) THEN
FMT(d/d_) addWav(x/d_)
ELIF nextPh(r) THEN
FMT(d/dr) addWav(x/d_dnt, 60)
ENDIF
FMT(d/d) addWav(x/d_dnt, 60)
endphoneme
phoneme p
import_phoneme base2/p
voicingswitch b
endphoneme
phoneme r // used for [r] when not preceding a vowel
liquid
lengthmod 2
IF nextPh(n) THEN
FMT(r3/r_n) addWav(r3/rx)
ENDIF
FMT(r3/r_) addWav(r3/rx)
endphoneme
phoneme k // tasasemad klõklsud
vls vel stp
lengthmod 5
voicingswitch g
Vowelin f1=0 f2=2300 200 400 f3=-100 80
Vowelout f1=0 f2=2300 300 400 f3=-100 80 rms=20
IF nextPh(isPause) THEN
WAV(ustop/k_unasp)
ENDIF
IF nextPh(#i) OR nextPh(l^) THEN
WAV(ustop/ki, 40)
ENDIF
IF nextPh(l) THEN
WAV(ustop/kl, 40)
ENDIF
IF nextPh(r) THEN
WAV(ustop/kr, 40)
ENDIF
IF nextPh(k) THEN
WAV(ustop/k_unasp, 10)
ENDIF
WAV(ustop/k_unasp, 20) // weaker
endphoneme
phoneme s2 // second part of long [s]
import_phoneme consonants/s2
endphoneme
phoneme h
vls glt apr
lengthmod 3
IF nextPh(#@) THEN
WAV(h/h@)
ELIF nextPh(#a) THEN
WAV(h/ha)
ELIF nextPh(#e) THEN
WAV(h/he)
ELIF nextPh(#i) THEN
WAV(h/hi)
ELIF nextPh(#o) THEN
WAV(h/ho)
ELIF nextPh(#u) THEN
WAV(h/hu)
ENDIF
WAV(h/h_, 70) // no vowel following
endphoneme
// Palatalized versions of consonants
phoneme s^
vls alv frc sib pzd
voicingswitch z
lengthmod 3
Vowelin f1=0 f2=1700 -300 300 f3=-100 80
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
WAV(ufric/s_pal)
endphoneme
phoneme t^
vls pal stp pzd
lengthmod 5
voicingswitch d^
Vowelin f1=0 f2=2700 400 600 f3=300 80 rate len=70
Vowelout f1=1 f2=2700 400 600 f3=200 70 len=50 colr=1
IF nextPh(isPause2) THEN
WAV(ustop/t_pzd, 60)
ENDIF
WAV(ustop/t_hi, 80)
endphoneme
phoneme d^
vcd alv stp pzd
lengthmod 5
voicingswitch t^
Vowelin f1=2 f2=2700 400 600 f3=200 80 rate len=80
Vowelout f1=2 f2=2700 400 600 f3=200 80 rate len=100 colr=1
IF PreVoicing THEN
FMT(d/xd_pzd)
ENDIF
IF nextPh(isPause2) THEN
FMT(d/d_) addWav(x/d_pzd, 40)
ELIF nextPh(isRhotic) THEN
FMT(d/dr) addWav(x/d_pzd, 80)
ENDIF
FMT(d/d) addWav(x/d_pzd, 80)
endphoneme