Debian Codegraph @

phsource/ph_latvian

raw
1 phoneme a
2 vwl starttype #a endtype #a
3 length 130
4 FMT(vwl_lv/a, 100) // adjusted from aa_3
5 endphoneme
6
7 phoneme a` // shorter variant of a
8 vwl starttype #a endtype #a
9 length 60
10 FMT(vwl_lv/a, 100)
11 endphoneme
12
13 phoneme a:
14 vwl starttype #a endtype #a
15 length 310
16 lng
17 FMT(vwl_lv/aa, 90)
18 endphoneme
19
20 phoneme E
21 vwl starttype #e endtype #e
22 ipa æ
23 length 120
24 FMT(vwl_lv/e2, 100)
25 endphoneme
26
27 phoneme E:
28 vwl starttype #e endtype #e
29 ipa æː
30 length 300
31 FMT(vwl_lv/ee2, 100)
32 endphoneme
33
34 phoneme e
35 vwl starttype #e endtype #e
36 length 120
37 FMT(vwl_lv/e, 100) // other alternative e_5
38 endphoneme
39
40 phoneme e:
41 vwl starttype #e endtype #e
42 length 300
43 FMT(vwl_lv/ee, 100) // other alternative e_8
44 endphoneme
45
46 phoneme i
47 vwl starttype #i endtype #i
48 length 120
49 FMT(vwl_lv/i, 110) // was i_6
50 endphoneme
51
52 phoneme i:
53 vwl starttype #i endtype #i
54 length 280
55 FMT(vwl_lv/ii, 90) // was i_7
56 endphoneme
57
58 phoneme y // English y, short Latgalian "hard i"
59 vwl starttype #i endtype #i
60 length 120
61 FMT(vwl_lv/y, 100)
62 endphoneme
63
64 phoneme y: // Long Latgalian "hard i"
65 vwl starttype #i endtype #i
66 length 300
67 FMT(vwl_lv/yy, 90)
68 endphoneme
69
70 phoneme o
71 vwl starttype #o endtype #o
72 length 120
73 FMT(vwl_lv/o, 90)
74 endphoneme
75
76 phoneme o` // shorter version of o
77 vwl starttype #o endtype #o
78 length 60
79 FMT(vwl_lv/o, 90)
80 endphoneme
81
82 phoneme o:
83 vwl starttype #o endtype #o
84 length 300
85 FMT(vwl_lv/oo, 75)
86 endphoneme
87
88 phoneme u
89 vwl starttype #u endtype #u
90 length 120
91 FMT(vwl_lv/u, 100)
92 endphoneme
93
94 phoneme u:
95 vwl starttype #u endtype #u
96 length 300
97 FMT(vwl_lv/uu, 90)
98 endphoneme
99
100 phoneme ai
101 vwl starttype #a endtype #i
102 length 280
103 lng
104 FMT(vwl_lv/ai, 100)
105 endphoneme
106
107 phoneme au
108 vwl starttype #a endtype #u
109 length 280
110 lng
111 FMT(vwl_lv/au, 100)
112 endphoneme
113
114 phoneme ei
115 vwl starttype #e endtype #i
116 length 280
117 lng
118 FMT(vwl_lv/ei, 100)
119 endphoneme
120
121 phoneme ie
122 vwl starttype #i endtype #e
123 length 250
124 lng
125 FMT(vwl_lv/ie, 100)
126 endphoneme
127
128 phoneme iu
129 vwl starttype #i endtype #u
130 length 250
131 lng
132 FMT(vwl_lv/iu, 100)
133 endphoneme
134
135 phoneme ui
136 vwl starttype #u endtype #i
137 length 250
138 lng
139 FMT(vwl_lv/ui, 100)
140 endphoneme
141
142 phoneme uo
143 vwl starttype #u endtype #a
144 length 280
145 lng
146 FMT(vwl_lv/ua, 110)
147 endphoneme
148
149 phoneme uo` // shorter version of uo
150 vwl starttype #u endtype #a
151 ipa uo
152 length 150
153 lng
154 FMT(vwl_lv/ua, 90)
155 endphoneme
156
157 phoneme oi
158 vwl starttype #o endtype #i
159 length 250
160 lng
161 FMT(vwl_lv/oi, 100)
162 endphoneme
163
164 phoneme ts
165 vls alv afr nolink
166 ipa t͡s
167 voicingswitch J
168 length 55
169 lengthmod 1
170 WAV(ustop/ts2, 60)
171 endphoneme
172
173 phoneme tS
174 vls pla afr sib
175 ipa t͡ʃ
176 voicingswitch dZ
177 lengthmod 2
178 length 80
179 WAV(ustop/tsh,40)
180 endphoneme
181
182 phoneme D // louder and shorter version of d
183 vcd alv stp
184 ipa d
185 voicingswitch t
186 length 8
187 lengthmod 5
188 Vowelin f1=1 f2=1700 -300 300 f3=-100 80
189 Vowelout f1=2 f2=1700 -300 300 f3=-100 80 brk
190
191 IF PreVoicing THEN
192 FMT(d/xd, 110)
193 ENDIF
194
195 IF nextPh(isPause2) THEN
196 FMT(d/d_, 120) addWav(x/d_,110)
197 ENDIF
198
199 FMT(d/d, 110) addWav(x/d,110)
200 endphoneme
201
202 phoneme h // more quiet version of standard h
203 vls glt apr
204 lengthmod 3
205 ipa h
206
207 IF nextPh(#a) THEN
208 WAV(h/h-lv, 20)
209 ELIF nextPh(#e) THEN
210 WAV(h/h-lv, 20)
211 ELIF nextPh(#i) THEN
212 WAV(h/h-lv, 20)
213 ELIF nextPh(#o) THEN
214 WAV(h/h-lv, 20)
215 ELIF nextPh(#u) THEN
216 WAV(h/h-lv, 20)
217 ELIF nextPh(isPause) THEN
218 WAV(h/h-lv, 20)
219 ENDIF
220 WAV(h/h-lv, 20) // no vowel following
221 endphoneme
222
223 phoneme j // **y**es
224 liquid pal starttype #i
225 IF nextPhW(isVowel) THEN
226 NextVowelStarts
227 VowelStart(j/j@)
228 VowelStart(j/ja)
229 VowelStart(j/je)
230 VowelStart(j/ji)
231 VowelStart(j/jo)
232 VowelStart(j/ju)
233 EndSwitch
234 VowelEnding(j/xj, 127) // In difference with English, vowel is lengthened, not shortened
235 ELSE
236 Vowelout len=127 // no vowel follows
237 FMT(j/xj)
238 ENDIF
239
240 IF prevPh(isPause) THEN
241 FMT(j/_j)
242 ENDIF
243 endphoneme
244
245 phoneme k
246 vls vel stp
247 lengthmod 2
248 voicingswitch g
249 Vowelin f1=0 f2=2300 200 400 f3=-100 80
250 Vowelout f1=0 f2=2300 300 400 f3=-100 80 rms=20
251 IF nextPh(isPause2) THEN
252 WAV(ustop/k_)
253 ENDIF
254 IF nextPh(#i) OR nextPh(l^) THEN
255 WAV(ustop/ki)
256 ENDIF
257 IF nextPh(l) THEN
258 WAV(ustop/kl)
259 ENDIF
260 WAV(ustop/k_unasp, 60) // weaker
261 endphoneme
262
263 phoneme c
264 vls pal stp pzd
265 voicingswitch J
266 WAV(ustop/c, 80)
267 endphoneme
268
269 phoneme l
270 liquid
271
272 IF nextPh(isNotVowel) THEN
273 PrevVowelEndings
274 VowelEnding(l/L1_@L)
275 VowelEnding(l/L1_aL)
276 VowelEnding(l/L1_eL)
277 VowelEnding(l/L1_iL)
278 VowelEnding(l/L1_oL)
279 VowelEnding(l/L1_uL)
280 EndSwitch
281
282 FMT(l/l_)
283 RETURN
284 ENDIF
285
286 CALL vowelstart_l
287
288 IF prevPh(a) OR prevPh(a:) THEN
289 VowelEnding(l/xl, 20) // FIXME
290 ELSEIF prevPh(isVowel) THEN
291 VowelEnding(l/xl, 10)
292 ENDIF
293
294 IF prevPh(isPause) THEN
295 FMT(l/_l)
296 ENDIF
297
298 IF prevPh(t) THEN
299 FMT(l/tl)
300 ENDIF
301
302 IF prevPh(l/) THEN
303 FMT(l/l_long) // double l, make it longer
304 ENDIF
305
306 FMT(l/l)
307 endphoneme
308
309 phoneme l^ // Latvian ļ, customized from standard l^
310 liquid
311 ipa ʎ
312 lengthmod 7
313 Vowelout len=60 lenadd rate
314 length 80
315
316 NextVowelStarts
317 VowelStart(l^/j2@)
318 VowelStart(l^/j2a)
319 VowelStart(l^/j2e)
320 VowelStart(l^/j2i)
321 VowelStart(l^/j2o)
322 VowelStart(l^/j2u)
323 EndSwitch
324
325 IF prevPh(isPause) THEN
326 FMT(l^/_l^)
327 ELSEIF nextPh(isPause) THEN
328 length 100
329 FMT(l^/l^_)
330 ENDIF
331
332 FMT(l^/l^)
333
334 endphoneme
335
336 phoneme m // copied from standard m phoneme with rule for 'mm'
337 vcd blb nas
338 Vowelout f1=2 f2=1000 -500 -350 f3=-200 80 brk
339 lengthmod 4
340
341 IF KlattSynth THEN
342 Vowelin f1=0 f2=1000 -50 -200 f3=-200 80
343 IF nextPh(isPause2) THEN
344 FMT(klatt/m_)
345 ENDIF
346 FMT(klatt/m)
347 ENDIF
348
349 NextVowelStarts
350 VowelStart(m/m@)
351 VowelStart(m/ma)
352 VowelStart(m/me)
353 VowelStart(m/mi)
354 VowelStart(m/mo)
355 VowelStart(m/mu)
356 EndSwitch
357
358 IF prevPh(isNotVowel) AND nextPhW(isLiquid) THEN
359 FMT(m/mj)
360 ELIF prevPh(isPause) THEN
361 FMT(m/_m)
362 ELIF nextPh(isNotVowel) THEN
363 FMT(m/m_)
364 ELIF nextPh(m) THEN // m/mj has no volume change, so doubled 'mm' merges better
365 FMT(m/mj)
366 ENDIF
367 endphoneme
368
369 phoneme n- // more voiced variant of n
370 vwl starttype #a endtype #a
371 ipa ŋ
372 lengthmod 4
373 length 140
374 FMT(n/n-syl)
375 endphoneme
376
377 phoneme p
378 vls blb stp
379 lengthmod 2
380 voicingswitch b
381 Vowelin f1=0 f2=1000 -50 -100 f3=-200 80
382 Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=30
383 IF nextPh(isPause2) THEN
384 WAV(ustop/p_unasp_, 80)
385 ENDIF
386 IF nextPh(l) THEN
387 WAV(ustop/pl)
388 ENDIF
389 WAV(ustop/p_unasp, 120)
390 endphoneme
391
392 phoneme R // Latvian hard r
393 liquid trl
394 ipa r
395 lengthmod 6
396 Vowelin f1=0 f2=1700 -300 300 f3=-300 80
397 Vowelout f1=2 f2=1700 -300 300 f3=-300 80 brk
398 FMT(r3/r_trill) addWav(r3/r_trill.wav, 60)
399 endphoneme
400
401 phoneme r // Latvian soft r
402 liquid trl
403 ipa r̝
404 lengthmod 6
405 Vowelin f1=0 f2=1700 -300 300 f3=-300 80
406 Vowelout f1=2 f2=1700 -300 300 f3=-300 80 brk
407 FMT(j/j_) addWav(r3/r_trill.wav, 25)
408 endphoneme
409
410 phoneme s
411 vls alv frc sib
412 voicingswitch z
413 lengthmod 3
414 Vowelin f1=0 f2=1700 -300 300 f3=-100 80
415 Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
416 WAV(ufric/s,60)
417 endphoneme
418
419 phoneme t
420 vls alv stp //lengthenstop
421 lengthmod 1
422 voicingswitch d
423 IF nextPh(isPause2) THEN
424 WAV(ustop/t_dnt, 40)
425 ENDIF
426 WAV(ustop/t_dnt, 50)
427 endphoneme
428
429 phoneme v // from v# in standard phonemes
430 vcd lbd frc
431 ipa ʋ
432 lengthmod 6
433 voicingswitch f
434 Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
435 Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50
436 IF nextPh(isPause2) THEN
437 FMT(voc/v#_)
438 ENDIF
439 FMT(voc/v#)
440 endphoneme
441
442 phoneme v` // shortened v
443 vcd lbd frc
444 ipa ʋ
445 lengthmod 6
446 voicingswitch f
447 Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
448 Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50
449 length 8
450 FMT(voc/v#_)
451 endphoneme
452
453 phoneme z- // Shorter version of z
454 vcd alv frc sib
455 length 30
456 voicingswitch s
457 Vowelout f1=0 f2=1700 -300 300 f3=-100 60 len=50
458
459 IF KlattSynth THEN
460 Vowelin f1=0 f2=1390 -300 300 f3=0 0
461 Vowelout f1=1 f2=1390 -300 300 f3=-100 60 len=50 brk
462 ENDIF
463
464 IF nextPh(isPause2) THEN
465 FMT(voc/z_) addWav(ufric/s_, 70)
466 ENDIF
467 FMT(voc/z) addWav(ufric/s_, 85)
468 endphoneme
469
470
471 phoneme z` // Shortest version of z for diphthong dz
472 vcd alv frc sib
473 ipa z
474 voicingswitch s
475 length 10
476 Vowelout f1=0 f2=1700 -300 300 f3=-100 60 len=50
477
478 IF KlattSynth THEN
479 Vowelin f1=0 f2=1390 -300 300 f3=0 0
480 Vowelout f1=1 f2=1390 -300 300 f3=-100 60 len=50 brk
481 ENDIF
482
483 IF nextPh(isPause2) THEN
484 length 20
485 FMT(voc/z_, 120) addWav(ufric/s_, 95)
486 ENDIF
487 FMT(voc/z, 110) addWav(ufric/s_, 100)
488 endphoneme
489
490 phoneme Z` // Shortened version of Z for diphthong dZ
491 vcd pla frc sib
492 ipa ʐ
493 voicingswitch S
494 length 30
495 lengthmod 6
496 Vowelin f1=0 f2=2000 0 300 f3=-200 80
497 Vowelout f1=2 f2=2000 0 300 f3=-200 80 brk
498
499 IF KlattSynth THEN
500 IF nextPh(isPause2) THEN
501 FMT(klatt/zh_, 70) addWav(vocw/zh, 70)
502 ENDIF
503 FMT(klatt/zh) addWav(vocw/zh, 130)
504 ENDIF
505
506 IF nextPh(isPause2) THEN
507 FMT(voc/zh_, 80) addWav(vocw/zh, 70)
508 ENDIF
509 FMT(voc/zh) addWav(vocw/zh, 130)
510 endphoneme
511
512 phoneme > // lengthen previous vowel less than using ":"
513 ipa ː
514 virtual
515 length 30 // it actually seems working shorter, but anyway...
516 endphoneme
517