Debian Codegraph @

phsource/ph_english

raw
1
2 phoneme t2 // [t] which doesn't reduce
3 vcd alv stop dontlist
4 ChangePhoneme(t)
5 endphoneme
6
7
8 phoneme t# // reduced [t] as in "city" in en-us
9 vcd alv stop
10 ChangePhoneme(t)
11 endphoneme
12
13
14 phoneme d# // change to [d] or [t] depending on whether previous phoneme is voiced
15 vls alv stop dontlist
16 IF prevPh(isVoiced) THEN
17 ChangePhoneme(d)
18 ELSE
19 ChangePhoneme(t)
20 ENDIF
21 endphoneme
22
23
24 phoneme z# // change to [z] or [s] depending on whether previous phoneme is voiced
25 vls alv frc sibilant dontlist
26 IF prevPh(isVoiced) THEN
27 ChangePhoneme(z)
28 ELSE
29 ChangePhoneme(s)
30 ENDIF
31 endphoneme
32
33
34
35 phoneme l // use dark [l/2] before not-vowel
36 liquid
37 lengthmod 7
38
39 IF NOT nextPhW(isVowel) THEN
40 IF prevPh(isVowel) OR prevPh(j) OR prevPh(w) THEN
41 ChangePhoneme(l/2)
42 ELSE
43 ChangePhoneme(l/)
44 ENDIF
45 ENDIF
46
47 CALL base/l
48 endphoneme
49
50
51 phoneme r- // linking r, used in English between certain vowels and a following vowel
52 liquid rhotic
53 ipa ɹ
54
55 IF NOT thisPh(isWordEnd) AND NOT prevPh(@) AND NOT prevPh(3) THEN
56 ChangePhoneme(r)
57 ENDIF
58
59 lengthmod 0
60
61 NextVowelStarts
62 VowelStart(r2/r2@)
63 VowelStart(r2/r2a)
64 VowelStart(r2/r2e)
65 VowelStart(r2/r2i)
66 VowelStart(r2/r2o)
67 VowelStart(r2/r2u)
68 EndSwitch
69
70 IF prevPh(isVowel) THEN
71 VowelEnding(r/xr, -60)
72 ENDIF
73
74 FMT(r/r)
75 endphoneme
76
77
78 phoneme z/2 // used for 's suffix
79 vcd alv frc sibilant
80 lengthmod 6
81 IF prevPh(isSibilant) THEN
82 InsertPhoneme(I2)
83 ENDIF
84
85 IF NOT prevPh(isVoiced) THEN
86 ChangePhoneme(s)
87 ENDIF
88 ChangePhoneme(z)
89 endphoneme
90
91
92 phoneme w#
93 vls glt apr // [h]
94 ipa ʍ
95
96 IF nextPh(isVowel) THEN
97 NextVowelStarts
98 VowelStart(w/w@)
99 VowelStart(w/wa)
100 VowelStart(w/we)
101 VowelStart(w/wi)
102 VowelStart(w/wo)
103 VowelStart(w/wu)
104 EndSwitch
105 ENDIF
106
107 WAV(h/hu, 70)
108 endphoneme
109
110
111 //*******************************************************************
112 // VOWELS
113 //*******************************************************************
114
115 phoneme @ // Schwa
116 vowel starttype #@ endtype #@
117 unstressed
118 length 140
119 IfNextVowelAppend(r-)
120 IF thisPh(isWordEnd) THEN
121 FMT(vowel/@_6, 90)
122 ENDIF
123 FMT(vowel/@)
124 endphoneme
125
126
127 phoneme 3 // Schwa, used for rhotic schwa in American
128 CALL @
129 ipa ə
130 endphoneme
131
132
133 phoneme @2 // Schwa, changes to I before a vowel
134 vowel starttype #@ endtype #@
135 unstressed dontlist
136 length 120
137 IF nextPh(isVowel) THEN
138 ChangePhoneme(I2)
139 ENDIF
140 ChangePhoneme(@)
141 endphoneme
142
143
144 phoneme @5 // Schwa, changes to U before a vowel
145 vowel starttype #@ endtype #@
146 unstressed dontlist
147 length 140
148 IF nextPh(isVowel) OR nextPh(isPause) THEN
149 ChangePhoneme(U)
150 ENDIF
151 ChangePhoneme(@)
152 endphoneme
153
154
155 phoneme @L
156 vowel starttype #@ endtype l
157 ipa ə|l
158 unstressed
159 length 160
160 CALL vowelstart_l
161 FMT(vwl_en/@L)
162 endphoneme
163
164
165 phoneme a
166 vowel starttype #a endtype #a
167 length 160
168 ChangeIfDiminished(a#)
169 IF thisPh(isUnstressed) THEN
170 FMT(vowel/a_8)
171 ENDIF
172 FMT(vowel/a)
173 endphoneme
174
175
176 phoneme a2 // don't reduce to a#
177 vowel dontlist
178 ChangePhoneme(a)
179 endphoneme
180
181
182 phoneme a#
183 vowel starttype #@ endtype #@
184 ipa ɐ
185 unstressed
186 length 150
187
188 IF NOT thisPh(isUnstressed) THEN
189 ChangePhoneme(a) // syllable has an explicit stress
190 ENDIF
191
192 FMT(vowel/a#_3)
193 endphoneme
194
195
196 phoneme aa // 'bath' etc.
197 vowel starttype #a endtype #a
198 ipa a
199 length 200
200
201 IF MbrolaSynth THEN
202 ChangePhoneme(A:)
203 ENDIF
204
205 IfNextVowelAppend(r-)
206 FMT(vowel/a_6, 88)
207 endphoneme
208
209
210 phoneme E
211 vowel starttype #e endtype #e
212 length 140
213 IF nextPhW(n) THEN
214 ChangeIfDiminished(@)
215 ELSE
216 ChangeIfDiminished(I2)
217 ENDIF
218 FMT(vowel/ee_5)
219 endphoneme
220
221
222 phoneme E# // [@] in unstressed syllables, if next vowel is stressed
223 vowel starttype #e endtype #e
224 dontlist
225
226 IF thisPh(isUnstressed) AND nextVowel(isVowel) AND nextVowel(isStressed) THEN
227 ChangePhoneme(@)
228 ENDIF
229
230 ChangePhoneme(E)
231 endphoneme
232
233
234 phoneme E2 // does not reduce in unstressed syllables
235 vowel starttype #e endtype #e
236 dontlist
237 length 140
238 ChangePhoneme(E) // a second change ([E] to [I2]) won't happen
239 endphoneme
240
241
242
243 phoneme I
244 vowel starttype #i endtype #i
245 length 130
246 IfNextVowelAppend(;)
247 FMT(vowel/ii_2)
248 endphoneme
249
250
251 phoneme I2
252 vowel starttype #i endtype #i
253 unstressed
254 length 130
255
256 IF MbrolaSynth THEN
257 ChangePhoneme(I)
258 ENDIF
259
260 IfNextVowelAppend(;)
261
262 IF thisPh(isAfterStress) AND thisPh(isFinalVowel) THEN
263 FMT(vowel/ii#_3)
264 ENDIF
265 FMT(vowel/ii_4)
266 endphoneme
267
268
269 phoneme I# // used for [I] which may be [@] in some accents
270 vowel starttype #i endtype #i
271 unstressed
272 length 130
273
274 IF MbrolaSynth THEN
275 ChangePhoneme(I)
276 ENDIF
277
278 IfNextVowelAppend(;)
279 ChangePhoneme(I2)
280 endphoneme
281
282
283 phoneme i // optional variant of [I] for end of words
284 vowel starttype #i endtype #i
285 unstressed
286 ipa i
287 length 150
288 IfNextVowelAppend(;)
289
290 // IF NOT thisPh(isFinalVowel) THEN
291 // ChangePhoneme(I)
292 // ENDIF
293
294 FMT(vowel/ii_7)
295 endphoneme
296
297
298 phoneme 0
299 vowel starttype #o endtype #o
300 length 140
301 ChangeIfDiminished(@)
302 FMT(vowel/0)
303 endphoneme
304
305
306 phoneme 0# // [@] in unstressed syllables
307 vowel starttype #o endtype #o
308 dontlist
309
310 IF thisPh(isUnstressed) AND nextVowel(isVowel) AND NOT nextVowel(isUnstressed) THEN
311 ChangePhoneme(@)
312 ENDIF
313
314 ChangePhoneme(0)
315 endphoneme
316
317
318 phoneme 02 // becomes V in en-us
319 vowel starttype #o endtype #o
320 dontlist
321 length 140
322 ChangePhoneme(0)
323 endphoneme
324
325
326 phoneme V
327 vowel starttype #a endtype #@
328 length 140
329
330 ChangeIfDiminished(@)
331 FMT(vowel/V_2)
332 endphoneme
333
334
335 phoneme U
336 vowel starttype #o endtype #o
337 length 150
338
339 IF prevPhW(j) THEN
340 length 130
341 FMT(vowel/8_2)
342 ENDIF
343
344 FMT(vowel/uu)
345 endphoneme
346
347
348
349 phoneme A:
350 vowel starttype #a endtype #a
351 length 230
352 IfNextVowelAppend(r-)
353 FMT(vowel/aa_2)
354 endphoneme
355
356
357 phoneme A@ // Used for [A:] when followed by 'r'
358 vowel starttype #a endtype #a
359 ipa ɑː
360 length 230
361 IfNextVowelAppend(r-)
362 FMT(vowel/aa_2)
363 endphoneme
364
365
366 phoneme A# // [a] in British [A:] in American
367 vowel starttype #a endtype #a
368 dontlist
369 ChangePhoneme(a)
370 endphoneme
371
372
373
374
375 phoneme 3:
376 vowel starttype #@ endtype #@
377 length 210
378 IfNextVowelAppend(r-)
379 ChangeIfDiminished(@)
380 FMT(vowel/3_en)
381 endphoneme
382
383
384 phoneme i:
385 vowel starttype #i endtype #i
386 length 175
387 IfNextVowelAppend(;)
388 IF prevPh(w) THEN
389 VowelStart(w/wi2)
390 ENDIF
391 FMT(vowel/i_en)
392 endphoneme
393
394
395 phoneme O:
396 vowel starttype #o endtype #o
397 length 230
398 ChangeIfDiminished(@)
399 FMT(vowel/oo_en)
400 endphoneme
401
402
403 phoneme O
404 vowel starttype #o endtype #o
405 length 200
406 ChangeIfDiminished(@)
407 FMT(vowel/oo_en)
408 endphoneme
409
410
411 phoneme O@
412 vowel starttype #o endtype #o
413 ipa ɔː
414 length 240
415 IfNextVowelAppend(r-)
416 FMT(vowel/oo_en)
417 endphoneme
418
419
420 phoneme o@
421 vowel starttype #o endtype #o
422 ipa ɔː
423 length 250
424
425 IF MbrolaSynth THEN
426 ChangePhoneme(O@)
427 ENDIF
428
429 IfNextVowelAppend(r-)
430 FMT(vowel/oo_en)
431 endphoneme
432
433
434 phoneme u:
435 vowel starttype #u endtype #u
436 length 210
437 IF nextPh(l/2) THEN
438 FMT(vwl_en/u_L)
439 ENDIF
440 IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
441 length 160
442 ENDIF
443 FMT(vdiph2/uw_2)
444 endphoneme
445
446
447 phoneme aU
448 vowel starttype #a endtype #u
449 length 230
450 FMT(vdiph/au)
451 endphoneme
452
453
454 phoneme oU
455 vowel starttype #@ endtype #u
456 ipa əʊ
457 length 220
458 FMT(vdiph/@u_en)
459 endphoneme
460
461
462 phoneme oU#
463 vowel dontlist
464 IF thisPh(isStressed) THEN
465 ChangePhoneme(0)
466 ENDIF
467
468 IF nextVowel(isStressed) OR prevVowel(isStressed) THEN
469 ChangePhoneme(@)
470 ENDIF
471
472 ChangePhoneme(oU)
473 endphoneme
474
475
476 phoneme aI
477 vowel starttype #a endtype #i
478 length 240
479 IF nextPh(#a) THEN
480 AppendPhoneme(;)
481 ENDIF
482 FMT(vdiph/ai_2)
483 endphoneme
484
485
486 phoneme eI
487 vowel starttype #e endtype #i
488 length 210
489 FMT(vdiph/eei)
490 endphoneme
491
492
493 phoneme OI
494 vowel starttype #o endtype #i
495 length 230
496 FMT(vdiph/ooi)
497 endphoneme
498
499
500 phoneme e@
501 vowel starttype #e endtype #@
502 length 230
503 IfNextVowelAppend(r-)
504 FMT(vowel/ee_1)
505 endphoneme
506
507
508 phoneme i@
509 vowel starttype #i endtype #@
510 length 250
511 IfNextVowelAppend(r-)
512 FMT(vdiph2/ii@)
513 endphoneme
514
515
516 phoneme i@3
517 vowel starttype #i endtype #@
518 length 250
519
520 IF MbrolaSynth THEN
521 ChangePhoneme(i@)
522 ENDIF
523
524 IfNextVowelAppend(r-)
525 FMT(vdiph2/ii@)
526 endphoneme
527
528
529 phoneme U@
530 vowel starttype #u endtype #@
531 length 200
532 IfNextVowelAppend(r-)
533 IF thisPh(isUnstressed) THEN
534 FMT(vdiph2/8@)
535 ENDIF
536 FMT(vdiph2/uu@)
537 endphoneme
538
539
540 phoneme aI@
541 vowel starttype #a endtype #@
542 length 280
543 IfNextVowelAppend(r-)
544 FMT(vwl_en/aI@)
545 endphoneme
546
547
548 phoneme aI3
549 vowel starttype #a endtype #@
550 length 280
551 ChangePhoneme(aI@)
552 endphoneme
553
554
555 phoneme aU@
556 vowel starttype #a endtype #@
557 length 280
558 IfNextVowelAppend(r-)
559 FMT(vwl_en/aU@)
560 endphoneme
561
562
563
564
565 phoneme IR // used for "ir" when [3:] is split (Scottish)
566 vowel starttype #@ endtype #@
567 length 190
568 ipa əɹ
569 IF nextPhW(r-) THEN
570 ipa ə
571 ENDIF
572 IfNextVowelAppend(r-)
573 FMT(vowelr/V_r)
574 endphoneme
575
576
577 phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
578 vowel starttype #@ endtype #@
579 length 210
580 ipa ʌɹ
581 IF nextPhW(r-) THEN
582 ipa ʌ
583 ENDIF
584 IfNextVowelAppend(r-)
585 FMT(vowelr/V3_r)
586 endphoneme
587
588
589 phoneme o:
590 vowel starttype #o endtype #o
591 length 220
592 FMT(vowel/o)
593 endphoneme
594
595
596 phoneme A~
597 vowel starttype #a endtype #a
598 length 260
599 FMT(vnasal/aa_n2)
600 endphoneme
601
602
603 phoneme O~
604 vowel starttype #o endtype #o
605 length 240
606 FMT(vnasal/oo_n2)
607 endphoneme
608
609
610 phoneme e:
611 vowel starttype #e endtype #e
612 length 210
613 FMT(vowel/e)
614 endphoneme
615
616
617 phoneme a#2 // for word 'an'
618 vowel dontlist
619 IF next2Ph(isVowel) THEN
620 ChangePhoneme(a#)
621 ELSE
622 ChangePhoneme(a)
623 ENDIF
624 endphoneme
625
626
627 phoneme @# // TEST: [@] which is slightly more 'front'
628 vowel starttype #i endtype #i
629 unstressed
630 length 130
631 FMT(vowel/@_3)
632 endphoneme
633