Debian Codegraph @

phsource/ph_vietnam

raw
1
2 //====================================================
3 // Vietnamese Phonemes
4 //====================================================
5
6
7 phoneme 1 // ngang tone: level
8 stress
9 Tone(27, 25, envelope/p_level, NULL) // 28 29
10 endphoneme
11
12
13 phoneme 2 // huyền tone: low falling
14 stress
15 Tone(20, 8, envelope/p_fall, NULL) //20 8
16 endphoneme
17
18
19 phoneme 3 // sắc Tone(rising
20 stress
21 Tone(20, 50, envelope/p_rise, NULL) // 30 60
22 endphoneme
23
24
25 phoneme 4 // hỏi Tone(curve (dipping rising)
26 stress
27 Tone(10, 31, envelope/p_fallrise, NULL) //33 31
28 endphoneme
29
30
31 phoneme 5 // ngã tone: broken (creaking rising)
32 stress
33 Tone(34, 60,envelope/p_214, envelope/vi_5amp) // 28,58 20 80
34 endphoneme
35
36
37 phoneme 6 // nặng Tone(drop (constricted)
38 stress
39 //length 150 // ignore because it make too short sound 75 // reduce the length of the vowel
40 Tone(34, 10, envelope/p_512, envelope/vi_6amp) //40 20
41 endphoneme
42
43
44 phoneme 7 // Tone(1 (ngang) at end of clause
45 stress
46 Tone(30, 28, envelope/p_fall, NULL) //40 20
47 endphoneme
48
49
50
51 // Vowels
52 //=======
53
54
55 phoneme a
56 vwl starttype #@ endtype #@
57 IF nextPhW(p) THEN
58 length 78
59 ELIF nextPhW(t[) THEN
60 length 84
61 ELIF nextPhW(c) THEN
62 length 82
63 ELIF nextPhW(m) THEN
64 length 90
65 ELIF nextPhW(n) THEN
66 length 100
67 ELIF nextPhW(N) THEN
68 length 90
69 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
70 length 240
71 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
72 length 140
73 ELSE
74 length 100
75 ENDIF
76
77 FMT(vietnam/a_2) //a_4)
78
79 endphoneme
80
81 phoneme a:
82 vwl starttype #a endtype #a
83 IF nextPhW(p) THEN
84 length 142
85 ELIF nextPhW(t[) THEN
86 length 126
87 ELIF nextPhW(c) THEN
88 length 136
89 ELIF nextPhW(m) THEN
90 length 155
91 ELIF nextPhW(n) THEN
92 length 185
93 ELIF nextPhW(N) THEN
94 length 200
95 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
96 length 300
97 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
98 length 240
99 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
100 length 333
101 ELSE
102 length 180
103 ENDIF
104 //FMT(vowel/a_8)
105 FMT(vietnam/aa)
106 endphoneme
107
108
109 phoneme E
110 vwl starttype #e endtype #e
111
112 IF nextPhW(p) THEN
113 length 143
114 ELIF nextPhW(t[) THEN
115 length 107
116 ELIF nextPhW(c) THEN
117 length 141
118 ELIF nextPhW(m) THEN
119 length 128
120 ELIF nextPhW(n) THEN
121 length 160
122 ELIF nextPhW(N) THEN
123 length 187
124 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
125 length 300
126 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
127 length 240
128 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
129 length 352
130 ELSE
131 length 180
132 ENDIF
133 //FMT(vowel/e_e) //ee_3)
134 FMT(vietnam/e_e_2)
135 endphoneme
136
137 phoneme e
138 vwl starttype #e endtype #e
139 IF nextPhW(p) THEN
140 length 114
141 ELIF nextPhW(t[) THEN
142 length 126
143 ELIF nextPhW(c) THEN
144 length 140
145 ELIF nextPhW(n^) THEN
146 length 120
147 ELIF nextPhW(m) THEN
148 length 148
149 ELIF nextPhW(n) THEN
150 length 163
151 ELIF nextPhW(N) THEN
152 length 115
153 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
154 length 300
155 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
156 length 240
157 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
158 length 324
159 ELSE
160 length 180
161 ENDIF
162 IF nextPh(n^) THEN
163 FMT(vowel/e)
164 ELSE
165 FMT(vietnam/e, 150)
166 ENDIF
167 endphoneme
168
169
170 phoneme e-
171 vwl starttype #e endtype #a
172 length 140
173 FMT(vietnam/e_short_1)
174 //FMT(vdiph/aai_3)
175 endphoneme
176
177 phoneme i
178 vwl starttype #i endtype #i
179 IfNextVowelAppend(;)
180 IF prevPhW(w) THEN
181 VowelStart(w/wi)
182 ENDIF
183 IF nextPhW(p) THEN
184 length 131
185 ELIF nextPhW(t[) THEN
186 length 113
187 ELIF nextPhW(c) OR nextPhW(n^) THEN
188 length 72
189 ELIF nextPhW(m) THEN
190 length 120
191 ELIF nextPhW(n) THEN
192 length 128
193 ELIF nextPhW(N) THEN
194 length 97
195 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
196 length 310
197 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
198 length 240
199 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
200 length 363
201 ELSE
202 length 180
203 ENDIF
204 IF nextPh(n^) OR nextPh(c) THEN
205 //FMT(vnasal/ii_n)
206 FMT(vietnam/i)
207 ELSE
208 //FMT(vowel/i_4)
209 FMT(vietnam/i_2, 100)
210 ENDIF
211 endphoneme
212
213
214 phoneme O
215 vwl starttype #o endtype #o
216 IF nextPhW(p) THEN
217 length 129
218 ELIF nextPhW(t[) THEN
219 length 125
220 ELIF nextPhW(c) THEN
221 length 80
222 ELIF nextPhW(m) THEN
223 length 133
224 ELIF nextPhW(n) THEN
225 length 158
226 ELIF nextPhW(N) THEN
227 length 102
228 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
229 length 300
230 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
231 length 240
232 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
233 length 331
234 ELSE
235 length 180
236 ENDIF
237 //FMT(vdiph2/o_oo) //vowel/oo)
238 FMT(vietnam/oo)
239 endphoneme
240
241 phoneme O+
242 vwl starttype #o endtype #o
243 IF nextPh(kh) OR nextPh(N) THEN
244 length 80
245 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
246 length 240
247 ELSE
248 length 180
249 ENDIF
250 FMT(vowel/o) //vowel/oo)
251 endphoneme
252
253 phoneme o
254 vwl starttype #o endtype #o
255 IF nextPhW(p) THEN
256 length 140
257 ELIF nextPhW(t[) THEN
258 length 113
259 ELIF nextPhW(c) THEN
260 length 88
261 ELIF nextPhW(m) THEN
262 length 134
263 ELIF nextPhW(n) THEN
264 length 168
265 ELIF nextPhW(N) THEN
266 length 99
267 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
268 length 310
269 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
270 length 240
271 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
272 length 363
273 ELSE
274 length 180
275 ENDIF
276 //FMT(vowel/o) // o_2)
277 FMT(vietnam/o_2)
278 endphoneme
279
280
281 phoneme u
282 vwl starttype #u endtype #u
283
284 IF nextPhW(p) THEN
285 length 110
286 ELIF nextPhW(t[) THEN
287 length 94
288 ELIF nextPhW(c) THEN
289 length 83
290 ELIF nextPhW(m) THEN
291 length 141
292 ELIF nextPhW(n) THEN
293 length 177
294 ELIF nextPhW(N) THEN
295 length 80
296 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
297 length 300
298 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
299 length 240
300 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
301 length 333
302 ELSE
303 length 180
304 ENDIF
305 //FMT(vnasal/u_n) //vowel/u_5)
306 FMT(vietnam/u)
307 endphoneme
308
309 phoneme y
310 vwl starttype #u endtype #u
311 IF nextPhW(p) THEN
312 length 102
313 ELIF nextPhW(t[) THEN
314 length 76
315 ELIF nextPhW(c) THEN
316 length 90
317 ELIF nextPhW(m) THEN
318 length 143
319 ELIF nextPhW(n) THEN
320 length 136
321 ELIF nextPhW(N) THEN
322 length 101
323 ELIF nextPhW(w) OR nextPhW(j) THEN
324 length 110
325 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
326 length 300
327 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
328 length 240
329 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
330 length 328
331 ELSE
332 length 180
333 ENDIF
334 //FMT(vowel/u#_5)
335 FMT(vietnam/y_2, 60)
336 endphoneme
337
338
339
340 phoneme @
341 vwl starttype #@ endtype #a
342 IF nextPhW(p) THEN
343 length 123
344 ELIF nextPhW(t[) THEN
345 length 123
346 ELIF nextPhW(c) THEN
347 length 139
348 ELIF nextPhW(m) THEN
349 length 127
350 ELIF nextPhW(n) THEN
351 length 160
352 ELIF nextPhW(N) THEN
353 length 156
354 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
355 length 240
356 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
357 length 240
358 ELSE
359 length 180
360 ENDIF
361 // FMT(vowel/V) //vowel/@_2)
362 FMT(vietnam/V_2)
363 endphoneme
364
365
366 phoneme @:
367 vwl starttype #@ endtype #@
368 IF nextPhW(p) THEN
369 length 123
370 ELIF nextPhW(t[) THEN
371 length 123
372 ELIF nextPhW(c) THEN
373 length 139
374 ELIF nextPhW(m) THEN
375 length 127
376 ELIF nextPhW(n) THEN
377 length 160
378 ELIF nextPhW(N) THEN
379 length 156
380 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
381 length 300
382 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
383 length 240
384 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
385 length 333
386 ELSE
387 length 180
388 ENDIF
389 //FMT(vowel/@_2)
390 FMT(vietnam/@_2)
391 endphoneme
392
393
394
395 // Diphthongs
396 //===========
397
398 phoneme aI
399 vwl starttype #a endtype #i
400 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
401 length 240
402 ELSE
403 length 200
404 ENDIF
405 FMT(vdiph/&i_2)
406 endphoneme
407
408
409 phoneme a:I
410 vwl starttype #a endtype #i
411 length 240 //250
412 FMT(vdiph/ai)
413 endphoneme
414
415
416 phoneme @I
417 vwl starttype #@ endtype #i
418 length 240 //250
419 FMT(vdiph/@i)
420 endphoneme
421
422
423 phoneme @:I
424 vwl starttype #@ endtype #i
425 length 240 //250
426 FMT(vdiph/y#i)
427 endphoneme
428
429
430 phoneme eI
431 vwl starttype #e endtype #i
432 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
433 length 240
434 ELSE
435 length 200
436 ENDIF
437 FMT(vdiph/ei)
438 endphoneme
439
440
441 phoneme EI
442 vwl starttype #e endtype #i
443 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
444 length 240
445 ELSE
446 length 200
447 ENDIF
448 FMT(vdiph/eei)
449 endphoneme
450
451
452 phoneme OI
453 vwl starttype #o endtype #i
454 length 240
455 FMT(vdiph/ooi_4)
456 endphoneme
457
458
459 phoneme oI
460 vwl starttype #o endtype #i
461 length 240
462 FMT(vdiph/oi)
463 endphoneme
464
465
466 phoneme uI
467 vwl starttype #u endtype #i
468 length 240
469 FMT(vdiph/ui)
470 endphoneme
471
472 phoneme yI
473 vwl starttype #u endtype #i
474 length 240
475 FMT(vdiph/u-i)
476 endphoneme
477
478
479
480
481 phoneme aU
482 vwl starttype #a endtype #u
483 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
484 length 240
485 ELSE
486 length 200
487 ENDIF
488 FMT(vdiph/aau_4)
489 endphoneme
490
491
492 phoneme a:U
493 vwl starttype #a endtype #u
494 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
495 length 240
496 ELSE
497 length 200
498 ENDIF
499 FMT(vdiph/au)
500 endphoneme
501
502
503 phoneme eU
504 vwl starttype #e endtype #u
505 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
506 length 240
507 ELSE
508 length 200
509 ENDIF
510 FMT(vdiph/eu)
511 endphoneme
512
513
514 phoneme EU
515 vwl starttype #e endtype #u
516 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
517 length 240
518 ELSE
519 length 200
520 ENDIF
521 FMT(vdiph/eeu)
522 endphoneme
523
524 phoneme iU
525 vwl starttype #i endtype #u
526 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
527 length 240
528 ELSE
529 length 200
530 ENDIF
531 FMT(vdiph2/iu)
532 endphoneme
533
534 phoneme @U
535 vwl starttype #@ endtype #u
536 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
537 length 240
538 ELSE
539 length 200
540 ENDIF
541 FMT(vdiph/@u_3)
542 endphoneme
543
544 phoneme @:U
545 vwl starttype #@ endtype #u
546 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
547 length 240
548 ELSE
549 length 200
550 ENDIF
551 FMT(vdiph/@u)
552 endphoneme
553
554
555
556 phoneme i@
557 vwl starttype #i endtype #@
558 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
559 length 240
560 ELSE
561 length 200
562 ENDIF
563 FMT(vdiph2/ii@_3)
564 endphoneme
565
566 phoneme y@
567 vwl starttype #i endtype #@
568 IF nextPhW(p) THEN
569 length 123
570 ELIF nextPhW(t[) THEN
571 length 123
572 ELIF nextPhW(c) THEN
573 length 139
574 ELIF nextPhW(m) THEN
575 length 127
576 ELIF nextPhW(n) THEN
577 length 180
578 ELIF nextPhW(N) THEN
579 length 156
580 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
581 length 240
582 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
583 length 240
584 ELSE
585 length 200
586 ENDIF
587 //FMT(vdiph2/y-y#)
588 FMT(vietnam/y@)
589 endphoneme
590
591 phoneme u@
592 vwl starttype #u endtype #@
593 IF nextPhW(p) THEN
594 length 123
595 ELIF nextPhW(t[) THEN
596 length 123
597 ELIF nextPhW(c) THEN
598 length 139
599 ELIF nextPhW(m) THEN
600 length 127
601 ELIF nextPhW(n) THEN
602 length 160
603 ELIF nextPhW(N) THEN
604 length 156
605 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
606 length 300
607 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
608 length 240
609 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
610 length 333
611 ELSE
612 length 240
613 ENDIF
614 //FMT(vdiph2/uu@)-
615 FMT(vietnam/u@)
616 endphoneme
617
618 // Addition Dipthongs
619
620 phoneme o# // ông
621 vwl starttype #o endtype #o
622 IF nextPhW(k) THEN
623 length 120
624 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
625 length 360
626 ELIF nextPhW(N) THEN
627 length 99
628 ELIF nextPhW(k) THEN
629 length 88
630 ELSE
631 length 200
632 ENDIF
633 //FMT(vnasal/a#u_n)
634 FMT(vietnam/o#)
635 endphoneme
636
637 phoneme O# // ong
638 vwl starttype #o endtype #o
639 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
640 length 240
641 ELIF nextPh(k) THEN
642 length 140
643 ELIF nextPh(N) THEN
644 length 102
645 ELSE
646 length 200
647 ENDIF
648 //FMT(vnasal/&u_n)
649 FMT(vietnam/O_short_2)
650 endphoneme
651
652
653 phoneme o@
654 vwl starttype #o endtype #a
655 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
656 length 240
657 ELSE
658 length 200
659 ENDIF
660 FMT(vdiph2/oa)
661 endphoneme
662
663 phoneme o&
664 vwl starttype #o endtype #o
665 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
666 length 240
667 ELSE
668 length 200
669 ENDIF
670 FMT(vietnam/oe)
671 endphoneme
672
673 phoneme iE // iê : viết, giệc
674 vwl starttype #i endtype #e
675 IF nextPhW(p) THEN
676 length 114
677 ELIF nextPhW(t[) THEN
678 length 126
679 ELIF nextPhW(c) THEN
680 length 140
681 ELIF nextPhW(n^) THEN
682 length 120
683 ELIF nextPhW(m) THEN
684 length 148
685 ELIF nextPhW(n) THEN
686 length 163
687 ELIF nextPhW(N) THEN
688 length 115
689 ELIF nextPhW(w) THEN
690 length 100
691 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
692 length 300
693 ELIF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordStart) THEN
694 length 240
695 ELIF thisPh(isWordStart) AND thisPh(isWordEnd) THEN
696 length 324
697 ELSE
698 length 180
699 ENDIF
700 FMT(vietnam/ie)
701 endphoneme
702
703 phoneme Oi // oai sound
704 vwl starttype #o endtype #i
705 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
706 length 240
707 ELSE
708 length 200
709 ENDIF
710 FMT(vdiph/ooi_3)
711 endphoneme
712
713 // Vowel and Dipthong for south dialect
714
715 phoneme O- // ôi southern sound
716 vwl starttype #o endtype #i
717 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
718 length 240
719 ELSE
720 length 180
721 ENDIF
722 FMT(vnasal/oi_n)
723 endphoneme
724
725 phoneme @- // ơi southern sound
726 vwl starttype #o endtype #i
727 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
728 length 240
729 ELSE
730 length 180
731 ENDIF
732 FMT(vdiph/@i_3)
733 endphoneme
734
735 phoneme u- // u southern sound
736 vwl starttype #u endtype #u
737 IF thisPh(isFirstVowel) AND thisPh(isFinalVowel) AND thisPh(isWordEnd) THEN
738 length 240
739 ELSE
740 length 180
741 ENDIF
742 FMT(vowel/u_3,70)
743 endphoneme
744
745 phoneme kh
746 vls vel frc
747 lengthmod 3
748 Vowelin f1=0 f2=2300 200 400 f3=200 80 len=30
749 Vowelout f1=0 f2=2300 300 400 f3=200 80 rms=20
750 WAV(ustop/k_unasp) //ufric/x, 50)
751 endphoneme
752
753 phoneme k
754 vls vel stp
755 lengthmod 3
756 IF nextPhW(#u) THEN
757 Vowelin f1=1 f2=600 -200 -400 f3=-200 80 amp=200 len=30 rms=200
758 WAV(vietnam/c_2, 255)
759 ELSE
760 Vowelin f1=0 f2=2300 200 400 f3=200 80 len=30
761 WAV(vietnam/c)
762 ENDIF
763 Vowelout f1=0 f2=2300 300 400 f3=200 80 rms=20
764 //WAV(ustop/c)
765
766 endphoneme
767
768 phoneme N // si**ng**
769 vcd lbv nas
770 IF prevPhW(u@) THEN
771 // do nothing
772 ELSE
773 Vowelout f1=3 f2=2300 300 400 f3=-200 80 len=40 rms=20 brk
774 ENDIF
775 lengthmod 12 // longer than 'n'
776 IF thisPh(isWordEnd) THEN
777 length 163
778 ENDIF
779 IF thisPh(isWordEnd) THEN
780 FMT(n/nm, 50)
781 ELSE
782 FMT(nn/_nn)
783 ENDIF
784 endphoneme
785
786 phoneme l
787 liquid
788 Vowelin f1=0 f2=1700 -300 300 f3=-100 80 len=15
789 //lengthmod 7
790 //IF nextPh(isNotVowel) THEN
791 // ChangePhoneme(l/2)
792 //ENDIF
793 //CALL vowelstart_l
794
795 FMT(l/l_vi)
796 endphoneme
797
798 phoneme t
799 vls alv stp
800 //voicingswitch d
801 lengthmod 2
802 Vowelin f1=0 f2=1700 -300 300 f3=-100 80 len=15
803 Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
804
805 WAV(vietnam/th, 50)
806 endphoneme
807
808 phoneme cr
809 vls pla afr sib
810 //voicingswitch dZ
811 lengthmod 2
812 Vowelin f1=0 f2=2300 200 400 f3=-100 80 len=15
813
814
815 WAV(vietnam/tr,10)
816 endphoneme
817
818 phoneme d_
819 vcd alv stp
820 // lengthmod 5
821 ipa ɗ
822 length 70
823 Vowelin f1=1 f2=1500 -300 300 f3=-100 80 len=15
824 Vowelout f1=2 f2=1700 -300 300 f3=-100 80 brk len=30
825 WAV(vietnam/dda_2, 200)
826
827 endphoneme
828
829 phoneme c
830 vls pal stp pzd
831 //voicingswitch J
832 lengthmod 2
833 length 50
834 Vowelin f1=0 f2=2700 400 600 f3=300 80 len=15 brk
835 Vowelout f1=1 f2=2700 400 600 f3=200 70 len=15 colr=1
836
837
838 WAV(vietnam/ch,5)
839 endphoneme
840
841
842 phoneme p
843 vls blb stp
844 lengthmod 2
845 length 15
846 Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
847 Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
848
849 IF thisPh(isWordEnd) THEN
850 WAV(ustop/p_unasp_, 10)
851 ELSE
852 WAV(ustop/p)
853 ENDIF
854 endphoneme
855
856 phoneme t[ // dental variant of /t/
857 IF thisPh(isWordEnd) THEN
858 vls alv stp
859 voicingswitch d
860 lengthmod 2
861 length 15
862 IF prevPhW(#@) THEN
863 Vowelout f1=0 f2=1200 -50 50 f3=50 80 rms=20 len=15
864 ELIF prevPhW(y@) THEN
865 Vowelout f1=2 f2=1200 -100 150 f3=150 80 rms=20 len=15
866 ELIF prevPhW(#i) THEN
867 Vowelout f1=0 f2=2000 -300 250 f3=-50 80 rms=20 len=15
868 ELIF prevPhW(E) THEN
869 Vowelout f1=0 f2=1900 -200 200 f3=-100 80 rms=20 len=15
870 ELIF prevPhW(e) OR prevPhW(iE) THEN
871 Vowelout f1=2 f2=1800 -400 250 f3=-200 80 rms=20 len=15
872 ELIF prevPhW(u) THEN
873 Vowelout f1=2 f2=1000 -1000 250 f3=-400 80 rms=20 len=15
874 ELIF prevPhW(y) THEN
875 Vowelout f1=1 f2=1500 -300 250 f3=-400 80 rms=20 len=15
876 ELIF prevPhW(#a) THEN
877 Vowelout f1=2 f2=1500 -300 250 f3=-500 80 rms=20 len=15
878 ELIF prevPhW(o) THEN
879 Vowelout f1=2 f2=1000 -100 250 f3=-200 80 rms=20 len=15
880 ELIF prevPhW(O) THEN
881 Vowelout f1=1 f2=1000 -300 200 f3=-100 80 rms=20 len=15
882 ELSE
883 Vowelout f1=0 f2=1500 -300 250 f3=-100 80 rms=20 len=15
884 ENDIF
885 WAV(ustop/t_, 25)
886 ELSE
887 vls dnt stp
888 voicingswitch d[
889 lengthmod 2
890 IF nextPhW(#u) THEN
891 length 30
892 ELSE
893 length 15
894 ENDIF
895 Vowelin f1=1 f2=1500 -250 250 f3=-100 80 amp=16 len=35
896 Vowelout f1=0 f2=1500 -300 250 f3=-100 80 rms=20 len=15
897
898 IF nextPh(isPause2) THEN
899 WAV(ustop/t_unasp2, 5)
900 ENDIF
901 WAV(ustop/t_hi, 70)
902 ENDIF
903 endphoneme
904
905 phoneme w
906 liquid
907
908 starttype #u
909
910 IF nextPh(isVowel) THEN
911 length 20
912 NextVowelStarts
913 VowelStart(w/w@)
914 VowelStart(w/wa)
915 VowelStart(w/we)
916 VowelStart(w/wi)
917 VowelStart(w/wo)
918 VowelStart(w/wu)
919 EndSwitch
920
921 VowelEnding(w/xw, -30)
922 IF nextPh(isVowel) AND prevPhW(t[) THEN
923 FMT(vnasal/u_n, 60) addWav(vietnam/w, 50)
924 ELIF prevPhW(isNasal) THEN
925 FMT(w/w)
926 ELSEIF prevPhW(h) THEN
927 // none, [hw]
928 ELSE
929 //FMT(w/_w) addWav(vietnam/w)
930 FMT(vietnam/_w)
931 ENDIF
932 ELSE
933 // no vowel follows
934 length 80
935 Vowelout len=20 rms=20
936
937 //FMT(w/w_)
938 FMT(vietnam/w_, 150)
939 ENDIF
940 endphoneme
941
942 phoneme n^ // (a)nh
943 vcd pal nas pzd
944 ipa ɲ
945 Vowelout f1=3 f2=2500 300 500 f3=100 80 len=45 brk rate
946 lengthmod 4
947
948 IF KlattSynth THEN
949 VowelStart(klatt/n^@)
950 FMT(klatt/n^)
951 ENDIF
952
953 NextVowelStarts
954 VowelStart(n^/n^@)
955 VowelStart(n^/n^a)
956 VowelStart(n^/n^e)
957 VowelStart(n^/n^i)
958 VowelStart(n^/n^o)
959 VowelStart(n^/n^u)
960 EndSwitch
961
962 IF thisPh(isWordEnd) THEN
963 IF nextPhW(n^) THEN
964 length 75
965 ELIF prevPhW(n^) THEN
966 length 100
967 ENDIF
968 FMT(vietnam/n^_)
969 ELSE
970 FMT(n^/_n^)
971 ENDIF
972 endphoneme
973
974 phoneme h
975 vls glt frc
976 lengthmod 3
977 ipa h
978
979 IF nextPh(#@) THEN
980 WAV(h/h@)
981 ELIF nextPh(#a) THEN
982 WAV(h/ha)
983 ELIF nextPh(#e) THEN
984 WAV(h/he)
985 ELIF nextPh(#i) THEN
986 WAV(vietnam/hi)
987 ELIF nextPh(#o) THEN
988 WAV(h/ho)
989 ELIF nextPh(#u) THEN
990 WAV(vietnam/hu, 25)
991 ENDIF
992 WAV(h/h_, 70) // no vowel following
993 endphoneme