Debian Codegraph @

phsource/ph_french

raw
1 //====================================================
2 // French
3 //====================================================
4 // Updated 2011-10-14 Michel Such <[email protected]>
5
6 phoneme #l virtual
7 // Used for l and l/
8 endphoneme
9
10 phoneme #r virtual
11 // Used for "r" sounds
12 endphoneme
13
14 phoneme : // Lengthen previous vowel by "length"
15 virtual
16 length 40
17 endphoneme
18
19 phoneme #cFR virtual
20 // To identify "b k d f g p t v" when before "r"
21 endphoneme
22
23
24 procedure pre_r
25 IF prevPh(y) THEN
26 VowelEnding(vwl_fr/y2r)
27 ELIF prevPh(E) THEN
28 VowelEnding(vwl_fr/e_2r)
29 ELIF prevPh(A~) THEN
30 VowelEnding(vwl_fr/aa2r)
31 ELIF prevPh(E~) OR prevPh(W~) THEN
32 VowelEnding(vwl_fr/ee2r)
33 ELIF prevPh(O~) THEN
34 VowelEnding(vwl_fr/oo2r)
35 ELIF prevPh(isVowel) THEN
36 PrevVowelEndings
37 VowelEnding(vwl_fr/@2r)
38 VowelEnding(vwl_fr/a2r)
39 VowelEnding(vwl_fr/e2r)
40 VowelEnding(vwl_fr/i2r)
41 VowelEnding(vwl_fr/o2r)
42 VowelEnding(vwl_fr/u2r)
43 EndSwitch
44 ENDIF
45 endprocedure
46
47
48 procedure post_r
49
50 IF nextPh(E) THEN
51 VowelStart(vwl_fr/re2)
52 ELIF nextPh(W) THEN
53 VowelStart(vwl_fr/r@2)
54 ELIF nextPh(A~) THEN
55 VowelStart(vwl_fr/raa)
56 ELIF nextPh(E~) OR nextPh(W~) THEN
57 VowelStart(vwl_fr/ree)
58 ELIF nextPh(y) THEN
59 VowelStart(vwl_fr/ry)
60 ELIF nextPh(w) THEN
61 VowelStart(vwl_fr/rw)
62 ELIF nextPh(O~) THEN
63 VowelStart(vwl_fr/roo)
64 ELIF nextPh(j) OR nextPh(j/) THEN
65 VowelStart(vwl_fr/rj)
66 ELIF nextPh(isVowel) THEN
67 NextVowelStarts
68 VowelStart(vwl_fr/r@)
69 VowelStart(vwl_fr/ra)
70 VowelStart(vwl_fr/re)
71 VowelStart(vwl_fr/ri)
72 VowelStart(vwl_fr/ro)
73 VowelStart(vwl_fr/ru)
74 EndSwitch
75 ENDIF
76 endprocedure
77
78
79 phoneme r
80 vcd uvl frc nopause
81 rhotic
82 starttype #r endtype #r
83 Vowelin f1=0 f2=1500 -400 400 f3=-400 80
84 lengthmod 7
85 ipa U+0281
86
87 IF nextPh(isNotVowel) THEN
88 ChangePhoneme(r/)
89 ELIF prevPh(isNotVowel) OR prevPh(isPause) THEN
90 ChangePhoneme(r/2)
91 ENDIF
92
93 CALL pre_r
94 CALL post_r
95
96 FMT(vwl_fr/r)
97 endphoneme
98
99
100 phoneme r2 // silent unless followed by vowel
101 vcd uvl frc
102 rhotic
103 starttype #r endtype #r
104 ipa U+0281
105
106 IF nextPh(isNotVowel) THEN
107 ChangePhoneme(NULL)
108 ELSE
109 ChangePhoneme(r)
110 ENDIF
111 endphoneme
112
113
114 phoneme r/ // variant of [r] when not preceding a vowel
115 vcd uvl frc
116 rhotic
117 starttype #r endtype #r
118 lengthmod 7
119 ipa ʁ
120
121 IF prevPhW(t) OR prevPhW(p) OR prevPhW(k) THEN
122 FMT(vwl_fr/trr) addWav(r3/rx, 15)
123 ELIF prevPh(isNotVowel) THEN
124 FMT(vwl_fr/rr) addWav(r3/rx, 15)
125 ENDIF
126
127 PrevVowelEndings
128 VowelEnding(vwl_fr/r_@)
129 VowelEnding(vwl_fr/r_a)
130 VowelEnding(vwl_fr/r_e)
131 VowelEnding(vwl_fr/r_i)
132 VowelEnding(vwl_fr/r_o)
133 VowelEnding(vwl_fr/r_u)
134 EndSwitch
135 IF prevPh(y) THEN
136 VowelEnding(vwl_fr/r_y)
137 ENDIF
138
139 IF nextPh(isNasal) THEN
140 FMT(vwl_fr/r_n) addWav(r3/rx, 20)
141 ELIF nextPh(#r) THEN
142 length 30
143 ENDIF
144
145 FMT(vwl_fr/r_) addWav(r3/rx, 20)
146 endphoneme
147
148
149 phoneme r/2
150 liquid rhotic uvl nopause
151 starttype #r endtype #r
152 Vowelin f1=0 f2=1500 -400 400 f3=-400 80
153 ipa U+0281
154
155 CALL post_r
156 IF prevPhW(f) OR prevPhW(k) OR prevPhW(p) OR prevPhW(s) OR prevPhW(t) OR prevPhW(S) THEN
157 FMT(vwl_fr/tr)
158 ELIF prevPhW(#cFR) THEN
159 FMT(vwl_fr/br)
160 ELSE
161 length 80
162 FMT(vwl_fr/r)
163 ENDIF
164 endphoneme
165
166
167 phoneme l
168 liquid
169 starttype #l endtype #l
170 lengthmod 7
171
172 IF nextPh(isNotVowel) THEN
173 ChangePhoneme(l/)
174 ELIF prevPhW(#cFR) THEN
175 ChangePhoneme(l/2)
176 ENDIF
177
178 NextVowelStarts
179 VowelStart(l/l@)
180 VowelStart(l/la, -10)
181 VowelStart(l/le, -15)
182 VowelStart(l/li, -15)
183 VowelStart(vwl_fr/lo, -10)
184 VowelStart(l/lu, -20)
185 EndSwitch
186
187 IF prevPh(#@) THEN
188 VowelEnding(l/xl, -50)
189 ELIF prevPh(isVowel) THEN
190 VowelEnding(l/xl, -40)
191 ENDIF
192
193 IF prevPh(isPause) OR thisPh(isWordStart) THEN
194 FMT(l/_l)
195 ENDIF
196 IF prevPh(isRhotic) OR prevPh(isNasal) THEN
197 FMT(l/_l)
198 ENDIF
199
200 IF prevPh(t) THEN
201 FMT(l/tl)
202 ENDIF
203
204 IF prevPh(l/) THEN
205 FMT(l/l_long) // double l, make it longer
206 ENDIF
207
208 FMT(l/l)
209 endphoneme
210
211
212 phoneme l/ // used for [l] when not before a vowel
213 liquid rfx
214 starttype #l endtype #l
215 lengthmod 7
216
217 IF nextPh(isVowel) THEN
218 ChangePhoneme(l)
219 ENDIF
220
221 IF prevPhW(y) THEN
222 VowelEnding(l/l_y)
223 ELIF prevPhW(isVowel) THEN
224 PrevVowelEndings
225 VowelEnding(l/l_@)
226 VowelEnding(l/l_a)
227 VowelEnding(l/l_e)
228 VowelEnding(l/l_i)
229 VowelEnding(l/l_o)
230 VowelEnding(l/l_u)
231 EndSwitch
232 ENDIF
233
234 IF prevPh(#r) THEN
235 FMT(l/_l)
236 ENDIF
237
238 FMT(l/l_)
239 endphoneme
240
241
242 phoneme l/2
243 liquid
244 starttype #l endtype #l
245
246 IF nextPh(isNotVowel) THEN
247 ChangePhoneme(l/)
248 ENDIF
249
250 NextVowelStarts
251 VowelStart(l/l@)
252 VowelStart(l/la, -10)
253 VowelStart(l/le, -15)
254 VowelStart(l/li, -15)
255 VowelStart(l/lo, -10)
256 VowelStart(l/lu, -20)
257 EndSwitch
258
259 IF prevPh(t) THEN
260 FMT(l/tl)
261 ENDIF
262
263 FMT(l/l)
264 endphoneme
265
266
267 // Vowels
268 //=======
269 phoneme @
270 vwl starttype #@ endtype #@
271 length 170
272 FMT(vowel/@_hgh)
273 endphoneme
274
275 phoneme @-
276 vwl starttype #@ endtype #@
277 unstressed
278 length 130
279 FMT(vowel/@_hgh)
280 endphoneme
281
282
283 phoneme a
284 vwl starttype #a endtype #a
285 IF nextPhW(isVowel) THEN
286 length 220
287 ELSE
288 length 170
289 ENDIF
290
291 FMT(vowel/a_7)
292 endphoneme
293
294
295 phoneme a-
296 vwl starttype #a endtype #a
297 unstressed
298 length 130
299
300 FMT(vowel/a_7, 85)
301 endphoneme
302
303
304 phoneme a# // For english words
305 import_phoneme en/a#
306 endphoneme
307
308
309 phoneme e
310 vwl starttype #e endtype #e
311
312 IF nextPh(l/) THEN
313 VowelEnding(l/xl, -20)
314 ELIF nextPh(isVowel) THEN
315 length 200
316 ELSE
317 length 170
318 ENDIF
319
320 FMT(vowel/e_8)
321 endphoneme
322
323
324 phoneme e-
325 vwl starttype #e endtype #e
326 unstressed
327 length 130
328 FMT(vowel/e_8)
329 endphoneme
330
331
332 phoneme E
333 vwl starttype #e endtype #e
334
335 IF nextPhW(j) THEN
336 length 190
337 ELSE
338 length 170
339 ENDIF
340
341 FMT(vowel/e_mid)
342 endphoneme
343
344
345 phoneme E-
346 vwl starttype #e endtype #e
347 unstressed
348 length 130
349 FMT(vowel/e_mid)
350 endphoneme
351
352
353 phoneme i
354 vwl starttype #i endtype #i
355 pzd
356
357 IF prevPhW(r/2) OR prevPhW(l/2) THEN
358 IF nextPhW(isVowel) THEN
359 length 240
360 ENDIF
361 ELIF prevPhW(#r) AND nextPhW(isVowel) THEN
362 IF nextPhW(#i) THEN
363 length 220
364 IfNextVowelAppend(;)
365 ELSE
366 ChangePhoneme(j/)
367 ENDIF
368 ELIF nextPhW(isVowel) THEN
369 ChangePhoneme(j)
370 ELSE
371 length 150
372 IfNextVowelAppend(;)
373 ENDIF
374
375 FMT(vowel/i_8)
376 endphoneme
377
378
379 phoneme I // For english words
380 import_phoneme en/I
381 endphoneme
382
383
384 phoneme I2 // For english words
385 import_phoneme en/I2
386 endphoneme
387
388
389 phoneme j/ // Short "i" between "r" and a vowel
390 vwl starttype #i endtype #i
391 length 80
392 // unstressed
393
394 NextVowelStarts
395 VowelStart(j/j@)
396 VowelStart(j/ja)
397 VowelStart(j/je)
398 VowelStart(j/ji)
399 VowelStart(j/jo)
400 VowelStart(j/ju)
401 EndSwitch
402 FMT(vwl_fr/j)
403 endphoneme
404
405
406 phoneme o
407 vwl starttype #o endtype #o
408 IF nextPh(isVowel) THEN
409 length 220
410 ELSE
411 length 170
412 ENDIF
413
414 IF thisPh(isFinalVowel) THEN
415 FMT(vowel/o_8)
416 ELSE
417 FMT(vowel/o)
418 ENDIF
419 endphoneme
420
421
422 phoneme O
423 vwl starttype #o endtype #o
424 length 170
425
426 IF thisPh(isFinalVowel) THEN
427 FMT(vowel/o_mid2)
428 ENDIF
429 IF nextPhW(#l) AND next2Ph(isNotVowel) THEN
430 FMT(vowel/o_mid2)
431 ENDIF
432 IF nextPhW(#r) AND next2Ph(isNotVowel) THEN
433 FMT(vowel/o_mid2)
434 ENDIF
435
436 FMT(vowel/o_mid)
437 endphoneme
438
439
440 phoneme oU
441 import_phoneme en/oU
442 endphoneme
443
444
445 phoneme u
446 vwl starttype #u endtype #u
447 IF nextPh(isVowel) OR nextPh(j) THEN
448 length 220
449 ELSE
450 length 180
451 ENDIF
452
453 FMT(vowel/u_bck2)
454 endphoneme
455
456
457 phoneme u: // slitely longer than u
458 vwl starttype #u endtype #u
459 length 240
460 FMT(vowel/u_bck2)
461 endphoneme
462
463
464 phoneme y
465 vwl starttype #u endtype #u
466
467 IF nextPhW(E~) OR nextPhW(#i) THEN
468 length 110
469 FMT(vowel/y, 80)
470 ENDIF
471
472 length 180
473 FMT(vowel/y)
474 endphoneme
475
476
477 phoneme y-
478 vwl starttype #u endtype #u
479 unstressed
480
481 length 130
482 FMT(vowel/y)
483 endphoneme
484
485
486 phoneme W
487 vwl starttype #@ endtype #@
488 length 180
489
490 FMT(vowel/@_6)
491 endphoneme
492
493
494 phoneme W2 // For english words
495 vwl starttype #@ endtype #@
496 length 100
497 unstressed
498
499 FMT(vowel/@_6)
500 endphoneme
501
502
503 phoneme Y
504 vwl starttype #@ endtype #@
505 length 170
506
507 FMT(vowel/y#)
508 endphoneme
509
510
511 phoneme w
512 vwl starttype #u endtype #u
513
514 IF prevPh(#r) OR prevPhW(#l) THEN
515 NextVowelStarts
516 VowelStart(w/w@)
517 VowelStart(vwl_fr/wa)
518 VowelStart(w/we)
519 VowelStart(w/wi)
520 VowelStart(w/wo)
521 VowelStart(w/wu)
522 EndSwitch
523 ELSE
524 ChangePhoneme(w/)
525 ENDIF
526 endphoneme
527
528
529 phoneme w/
530 liquid
531 lengthmod 7
532
533 IF nextPh(isVowel) THEN
534 NextVowelStarts
535 VowelStart(w/w@)
536 VowelStart(vwl_fr/wa)
537 VowelStart(w/we)
538 VowelStart(w/wi)
539 VowelStart(w/wo)
540 VowelStart(w/wu)
541 EndSwitch
542
543 VowelEnding(w/xw, -30)
544
545 IF prevPh(isPause) THEN
546 FMT(w/_w)
547 ELSE
548 FMT(w/_w)
549 ENDIF
550 ELSE
551 // no vowel follows
552 Vowelout len=50
553 IF prevPh(#i) THEN
554 FMT(w/iw_)
555 ENDIF
556 FMT(w/w_)
557 ENDIF
558 endphoneme
559
560
561 phoneme A~
562 vwl starttype #a endtype #a
563 length 190
564
565 FMT(vnasal/aa_n4)
566 endphoneme
567
568
569 phoneme E~ // same as W~ for fr-fr
570 vwl starttype #e endtype #e
571 length 190
572
573 IF nextPh(n2) THEN
574 FMT(vowel/e_mid)
575 ENDIF
576 FMT(vnasal/W_n)
577 endphoneme
578
579
580 phoneme O~
581 vwl starttype #o endtype #o
582 length 190
583 FMT(vnasal/o_n5)
584 endphoneme
585
586
587 phoneme W~
588 vwl starttype #@ endtype #@
589 length 190
590 FMT(vnasal/W_n)
591 endphoneme
592
593
594
595 // CONSONANTS
596 //===========
597 // uses the consonants in file "phonemes", unless overridden here
598
599 phoneme b
600 vcd blb stp
601 starttype #cFR endtype #cFR
602 voicingswitch p
603 lengthmod 6
604 Vowelin f1=2 f2=1000 -300 -200 f3=-100 100
605 Vowelout f1=2 f2=1000 -500 -300 f3=-300 80 brk
606
607 IF KlattSynth THEN
608 Vowelin f1=1 f2=1000 -500 -300 f3=-300 80
609 IF nextPh(isPause2) THEN
610 FMT(klatt/b) addWav(x/b_)
611 ENDIF
612 FMT(klatt/b) addWav(x/b)
613 ENDIF
614
615 IF PreVoicing THEN
616 IF nextPhW(#r) THEN
617 FMT(b/xbr)
618 ELSE
619 FMT(b/xb)
620 ENDIF
621 ENDIF
622
623 IF nextPh(isPause2) OR nextPh(l) THEN
624 FMT(b/b_) addWav(x/b_)
625 ELIF nextPh(l/) THEN
626 FMT(b/b)
627 ELIF nextPh(#r) THEN
628 FMT(b/br) addWav(x/b, 50)
629 ENDIF
630
631 FMT(b/b) addWav(x/b, 70)
632 endphoneme
633
634
635 phoneme d
636 vcd alv stp
637 starttype #cFR endtype #cFR
638 voicingswitch t
639 lengthmod 5
640 Vowelin f1=1 f2=1700 -300 300 f3=-100 80 amp=20
641 Vowelout f1=2 f2=1700 -300 300 f3=-100 80
642
643 IF PreVoicing THEN
644 IF nextPhW(#r) THEN
645 FMT(d/xdr)
646 ELSE
647 FMT(d/xd)
648 ENDIF
649 ENDIF
650
651 IF nextPh(isPause2) THEN
652 FMT(d/d_) addWav(x/d_, 50)
653 ELIF nextPhW(#r) THEN
654 FMT(d/dr) addWav(x/d_, 50)
655 ENDIF
656
657 FMT(d/d) addWav(x/d, 40)
658 endphoneme
659
660
661 phoneme f
662 vls lbd frc
663 starttype #cFR endtype #cFR
664 voicingswitch v
665 lengthmod 3
666 Vowelout f1=0 f2=1000 -500 -350 f3=-200 100
667
668 IF nextPh(isPause) THEN
669 WAV(ufric/f_)
670 ENDIF
671 WAV(ufric/f, 80)
672 endphoneme
673
674
675 phoneme g
676 vcd vel stp
677 starttype #cFR endtype #cFR
678 voicingswitch k
679 lengthmod 5
680 Vowelin f1=2 f2=2300 200 300 f3=-300 80
681 Vowelout f1=1 f2=2300 250 300 f3=-300 80 brk
682
683 IF PreVoicing THEN
684 IF nextPhW(#r) THEN
685 FMT(g/xgr)
686 ELSE
687 FMT(g/xg)
688 ENDIF
689 ENDIF
690
691 IF nextPh(isPause2) THEN
692 FMT(g/g_) addWav(x/g_)
693 ELIF nextPhW(#r) THEN
694 FMT(g/gr) addWav(x/g, 20)
695 ENDIF
696
697 FMT(g/g) addWav(x/g, 20)
698 endphoneme
699
700
701 phoneme k
702 vls vel stp
703 starttype #cFR endtype #cFR
704 voicingswitch g
705 length 50
706 lengthmod 2
707 Vowelin f1=0 f2=2300 200 400 f3=-100 80
708 Vowelout f1=0 f2=2300 300 400 f3=-100 80 rms=20
709
710 IF nextPh(isPause2) THEN
711 WAV(ustop/k_)
712 ELIF nextPh(#i) OR nextPh(;) THEN
713 WAV(ustop/ki, 45)
714 ELIF nextPh(#l) THEN
715 WAV(ustop/kl, 40)
716 ELIF nextPh(#r) THEN
717 length 45
718 WAV(ustop/k, 50)
719 ENDIF
720
721 WAV(ustop/k, 40)
722 endphoneme
723
724
725 phoneme n
726 vcd alv nas
727 Vowelout f1=2 f2=1700 -300 250 f3=-100 80 rms=20 brk
728 lengthmod 4
729
730 IF KlattSynth THEN
731 Vowelin f1=0 f2=1500 -200 200 f3=0 80
732 FMT(klatt/n)
733 ENDIF
734
735 NextVowelStarts
736 VowelStart(n/n@)
737 VowelStart(n/na)
738 VowelStart(n/ne)
739 VowelStart(n/ni)
740 VowelStart(n/no)
741 VowelStart(n/nu)
742 EndSwitch
743
744 IF prevPh(isNotVowel) AND nextPhW(isLiquid) THEN
745 FMT(n/nj)
746 ELIF prevPh(isPause) OR prevPh(n) THEN
747 FMT(n/_n)
748 ELIF nextPh(isNotVowel) THEN
749 length 120
750 FMT(n/n_long_)
751 ENDIF
752 endphoneme
753
754
755 phoneme n2
756 vcd alv nas
757 IF nextPh(w) OR nextPh(isVowel) THEN
758 ChangePhoneme(n)
759 ELSE
760 ChangePhoneme(NULL)
761 ENDIF
762 endphoneme
763
764
765 phoneme p
766 vls blb stp
767 starttype #cFR endtype #cFR
768 voicingswitch b
769 lengthmod 2
770 Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
771 Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
772
773 IF nextPh(isPause2) THEN
774 WAV(ustop/p_, 80)
775 ELIF nextPh(@-) THEN
776 WAV(ustop/p_unasp, 70)
777 ELIF nextPh(#l) THEN
778 WAV(ustop/pl, 50)
779 ELIF nextPh(#r) THEN
780 length 40
781 WAV(ustop/p_, 80)
782 ENDIF
783 WAV(ustop/p_unasp_, 90)
784 endphoneme
785
786
787 phoneme p2 // silent unless followed by vowel
788 vls blb stp
789 lengthmod 2
790 Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
791 Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
792
793 IF nextPh(isNotVowel) THEN
794 ChangePhoneme(NULL)
795 ENDIF
796
797 WAV(ustop/p, 45)
798 endphoneme
799
800
801 phoneme s
802 vls alv frc sib
803 voicingswitch z
804 lengthmod 3
805 Vowelin f1=0 f2=1700 -300 300 f3=-100 80
806 Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
807
808 IF nextPh(isPause) THEN
809 WAV(ufric/s_, 45)
810 ELIF nextPh(p) OR nextPh(t) OR nextPh(k) THEN
811 WAV(ufric/s!, 45)
812 ENDIF
813
814 WAV(ufric/s, 45)
815 endphoneme
816
817
818 phoneme S
819 vls pla frc sib
820 starttype #cFR endtype #cFR
821 voicingswitch Z
822 lengthmod 3
823 Vowelin f1=0 f2=1900 100 300 f3=-100 80
824 Vowelout f1=0 f2=1900 100 300 f3=-100 80
825
826 IF prevPhW(t) THEN
827 length 60
828 ENDIF
829
830 IF nextPh(isPause) THEN
831 WAV(ufric/sh_, 45)
832 ENDIF
833 WAV(ufric/sh, 45)
834 endphoneme
835
836
837
838 phoneme t
839 vls alv stp
840 starttype #cFR endtype #cFR
841 voicingswitch d
842 lengthmod 2
843 Vowelin f1=0 f2=1700 -300 300 f3=-100 80
844 Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
845
846 IF nextPh(isPause2) THEN
847 WAV(ustop/t_, 40)
848 ELIF nextPh(#r) THEN
849 length 40
850 WAV(ustop/t_short_, 50)
851 ENDIF
852
853 WAV(ustop/t_short, 40)
854 endphoneme
855
856
857 phoneme t2 // silent unless followed by vowel
858 vls alv stp
859 Vowelin f1=0 f2=1600 -300 300 f3=-100 80
860 Vowelout f1=0 f2=1600 -300 250 f3=-100 80 rms=20
861 lengthmod 2
862
863 IF nextPh(isVowel) OR nextPh(w) OR nextPh(j) THEN
864 WAV(ustop/t_short, 30)
865 ELSE
866 ChangePhoneme(NULL)
867 ENDIF
868
869 endphoneme
870
871
872 phoneme t3 // silent unless followed by vowel or pause
873 vls alv stp
874 lengthmod 2
875 IF nextPh(isPause) THEN
876 ChangePhoneme(t)
877 ELIF nextPh(isNotVowel) THEN
878 ChangePhoneme(NULL)
879 ELSE
880 ChangePhoneme(t2)
881 ENDIF
882 endphoneme
883
884
885 phoneme v
886 vcd lbd frc
887 starttype #cFR endtype #cFR
888 voicingswitch f
889 lengthmod 6
890 length 90
891 Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
892 Vowelout f1=0 f2=1000 -500 -300 f3=-300 100
893
894 IF KlattSynth THEN
895 CALL base1/v
896 RETURN
897 ENDIF
898
899 IF nextPh(isPause2) THEN
900 FMT(voc/v_) addWav(vocw/v)
901 ENDIF
902 IF thisPh(isWordStart) AND nextPhW(isLiquid) THEN
903 length 70
904 ELIF nextPhW(w/) OR nextPhW(#r) THEN
905 length 60
906 ENDIF
907 FMT(voc/v) addWav(vocw/v, 60)
908 endphoneme
909
910 phoneme V // For english words
911 vwl starttype #a endtype #@
912 length 140
913
914 ChangeIfDiminished(@)
915 FMT(vowel/V_2)
916 endphoneme
917
918
919 phoneme z
920 vcd alv frc sib
921 voicingswitch s
922 lengthmod 6
923 Vowelout f1=0 f2=1700 -300 300 f3=-100 60 len=50
924
925 IF nextPhW(z) THEN
926 FMT(d/xd)
927 ENDIF
928
929 IF nextPh(isPause2) OR nextPh(isPause) THEN
930 FMT(voc/z_) addWav(ufric/s_, 45)
931 ENDIF
932
933 IF prevPhW(t) THEN
934 length 60
935 ENDIF
936
937 FMT(voc/z) addWav(ufric/s_, 45)
938 endphoneme
939
940
941 phoneme z2 // silent unless followed by vowel
942 vcd alv frc sib
943 IF nextPh(isVowel) OR nextPh(w/) OR nextPh(j) THEN
944 length 70
945 FMT(voc/z) addWav(ufric/s, 40)
946 ELSE
947 ChangePhoneme(NULL)
948 ENDIF
949 endphoneme
950
951
952 phoneme z3 // "six" and "dix". [s] before pause, [z] before vowel, else []
953 vcd alv frc sib
954 IF nextPh(isPause) THEN
955 ChangePhoneme(s)
956 ELIF nextPh(isVowel) OR nextPh(w/) THEN
957 ChangePhoneme(z)
958 ELSE
959 ChangePhoneme(NULL)
960 ENDIF
961 endphoneme
962
963 phoneme j.
964 liquid
965 lengthmod 7
966 ipa U+0265
967 ChangePhoneme(y)
968 endphoneme