Debian Codegraph @

phsource/ph_english

raw
1
2 phoneme t2 // [t] which doesn't reduce
3 vcd alv stp
4 ChangePhoneme(t)
5 endphoneme
6
7
8 phoneme t# // reduced [t] as in "city" in en-us
9 vcd alv stp
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 stp
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 sib
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 base1/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 sib
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 phoneme n
112 vcd alv nas
113 lengthmod 4
114 ipa n
115 IF nextPhW(isVelar) THEN // /n/ is velarized to /N/ when before velar stops
116 ChangePhoneme(N)
117 ENDIF
118 CALL base1/n
119 endphoneme
120
121
122 //*******************************************************************
123 // VOWELS
124 //*******************************************************************
125
126 phoneme @
127 vwl starttype #@ endtype #@
128 unstressed
129 length 140
130 IfNextVowelAppend(r-)
131 IF thisPh(isWordEnd) THEN
132 FMT(vowel/@_6, 90)
133 ENDIF
134 FMT(vowel/@)
135 endphoneme
136
137
138 phoneme 3
139 CALL @
140 ipa ə
141 endphoneme
142
143
144 phoneme @2 // Schwa, changes to I before a vowel. th**e**, used only for "the".
145 vwl starttype #@ endtype #@
146 unstressed
147 length 120
148 IF nextPh(isVowel) THEN
149 ChangePhoneme(I2)
150 ENDIF
151 ChangePhoneme(@)
152 endphoneme
153
154
155 phoneme @5 // Schwa, changes to U before a vowel. t**o**, used only for "to".
156 vwl starttype #@ endtype #@
157 unstressed
158 length 140
159 IF nextPh(isVowel) OR nextPh(isPause) THEN
160 ChangePhoneme(U)
161 ENDIF
162 ChangePhoneme(@)
163 endphoneme
164
165
166 phoneme @L // simp**le**
167 vwl starttype #@ endtype l
168 ipa ə|l
169 unstressed
170 length 160
171 CALL vowelstart_l
172 FMT(vwl_en/@L)
173 endphoneme
174
175
176 phoneme a
177 vwl starttype #a endtype #a
178 length 160
179 ChangeIfDiminished(a#)
180 IF thisPh(isUnstressed) THEN
181 FMT(vowel/a_8)
182 ENDIF
183 FMT(vowel/a)
184 endphoneme
185
186
187 phoneme a2 // don't reduce to a#
188 vwl
189 ChangePhoneme(a)
190 endphoneme
191
192
193 phoneme a# // **a**bout. This may be \[@\] or may be a more open schwa.
194 vwl starttype #@ endtype #@
195 ipa ɐ
196 unstressed
197 length 150
198
199 IF NOT thisPh(isUnstressed) THEN
200 ChangePhoneme(a) // syllable has an explicit stress
201 ENDIF
202
203 FMT(vowel/a#_3)
204 endphoneme
205
206
207 phoneme aa
208 vwl starttype #a endtype #a
209 ipa a
210 length 200
211
212 IF MbrolaSynth THEN
213 ChangePhoneme(A:)
214 ENDIF
215
216 IfNextVowelAppend(r-)
217 FMT(vowel/a_6, 88)
218 endphoneme
219
220
221 phoneme E
222 vwl starttype #e endtype #e
223 length 140
224 IF nextPhW(n) THEN
225 ChangeIfDiminished(@)
226 ELSE
227 ChangeIfDiminished(I2)
228 ENDIF
229 FMT(vowel/ee_5)
230 endphoneme
231
232
233 phoneme E# // [@] in unstressed syllables, if next vowel is stressed
234 vwl starttype #e endtype #e
235
236 IF thisPh(isUnstressed) AND nextVowel(isVowel) AND nextVowel(isStressed) THEN
237 ChangePhoneme(@)
238 ENDIF
239
240 ChangePhoneme(E)
241 endphoneme
242
243
244 phoneme E2 // does not reduce in unstressed syllables
245 vwl starttype #e endtype #e
246 length 140
247 ChangePhoneme(E) // a second change ([E] to [I2]) won't happen
248 endphoneme
249
250
251
252 phoneme I
253 vwl starttype #i endtype #i
254 length 130
255 IfNextVowelAppend(;)
256 FMT(vowel/ii_2)
257 endphoneme
258
259
260 phoneme I2 // **i**ntend. As \[I\], but also indicates an unstressed syllable.
261 vwl starttype #i endtype #i
262 unstressed
263 length 130
264
265 IF MbrolaSynth THEN
266 ChangePhoneme(I)
267 ENDIF
268
269 IfNextVowelAppend(;)
270
271 IF thisPh(isAfterStress) AND thisPh(isFinalVowel) THEN
272 FMT(vowel/ii#_3)
273 ENDIF
274 FMT(vowel/ii_4)
275 endphoneme
276
277
278 phoneme I# // used for [I] which may be [@] in some accents
279 vwl starttype #i endtype #i
280 unstressed
281 length 130
282
283 IF MbrolaSynth THEN
284 ChangePhoneme(I)
285 ENDIF
286
287 IfNextVowelAppend(;)
288 ChangePhoneme(I2)
289 endphoneme
290
291
292 phoneme I2# // used for [I] in -ed adjectives which may be [E] in some accents
293 vwl starttype #@ endtype #@
294 unstressed
295
296 IfNextVowelAppend(;)
297 ChangePhoneme(I2)
298 endphoneme
299
300
301 phoneme i
302 vwl starttype #i endtype #i
303 unstressed
304 ipa i
305 length 150
306 IfNextVowelAppend(;)
307
308 // IF NOT thisPh(isFinalVowel) THEN
309 // ChangePhoneme(I)
310 // ENDIF
311
312 FMT(vowel/ii_7)
313 endphoneme
314
315
316 phoneme 0
317 vwl starttype #o endtype #o
318 length 140
319 ChangeIfDiminished(@)
320 FMT(vowel/0)
321 endphoneme
322
323
324 phoneme 0# // [@] in unstressed syllables
325 vwl starttype #o endtype #o
326
327 IF thisPh(isUnstressed) AND nextVowel(isVowel) AND NOT nextVowel(isUnstressed) THEN
328 ChangePhoneme(@)
329 ENDIF
330
331 ChangePhoneme(0)
332 endphoneme
333
334
335 phoneme 02 // becomes V in en-us
336 vwl starttype #o endtype #o
337 length 140
338 ChangePhoneme(0)
339 endphoneme
340
341
342 phoneme O2
343 vwl starttype #o endtype #o
344 length 140
345 ChangePhoneme(0)
346 endphoneme
347
348
349 phoneme V
350 vwl starttype #a endtype #@
351 length 140
352
353 ChangeIfDiminished(@)
354 FMT(vowel/V_2)
355 endphoneme
356
357
358 phoneme U
359 vwl starttype #o endtype #o
360 length 150
361
362 IF prevPhW(j) THEN
363 length 130
364 FMT(vowel/8_2)
365 ENDIF
366
367 FMT(vowel/uu)
368 endphoneme
369
370
371
372 phoneme A:
373 vwl starttype #a endtype #a
374 length 230
375 IfNextVowelAppend(r-)
376 FMT(vowel/aa_2)
377 endphoneme
378
379
380 phoneme A@
381 vwl starttype #a endtype #a
382 ipa ɑː
383 length 230
384 IfNextVowelAppend(r-)
385 FMT(vowel/aa_2)
386 endphoneme
387
388
389 phoneme A# // [a] in British [A:] in American
390 vwl starttype #a endtype #a
391 ChangePhoneme(a)
392 endphoneme
393
394
395
396
397 phoneme 3:
398 vwl starttype #@ endtype #@
399 length 210
400 IfNextVowelAppend(r-)
401 ChangeIfDiminished(@)
402 FMT(vowel/3_en)
403 endphoneme
404
405
406 phoneme i:
407 vwl starttype #i endtype #i
408 length 175
409 IfNextVowelAppend(;)
410 IF prevPh(w) THEN
411 VowelStart(w/wi2)
412 ENDIF
413 FMT(vowel/i_en)
414 endphoneme
415
416
417 phoneme O:
418 vwl starttype #o endtype #o
419 length 230
420 ChangeIfDiminished(@)
421 FMT(vowel/oo_en)
422 endphoneme
423
424
425 phoneme O
426 vwl starttype #o endtype #o
427 length 200
428 ChangeIfDiminished(@)
429 FMT(vowel/oo_en)
430 endphoneme
431
432
433 phoneme O@
434 vwl starttype #o endtype #o
435 ipa ɔː
436 length 240
437 IfNextVowelAppend(r-)
438 FMT(vowel/oo_en)
439 endphoneme
440
441
442 phoneme o@
443 vwl starttype #o endtype #o
444 ipa ɔː
445 length 250
446
447 IF MbrolaSynth THEN
448 ChangePhoneme(O@)
449 ENDIF
450
451 IfNextVowelAppend(r-)
452 FMT(vowel/oo_en)
453 endphoneme
454
455
456 phoneme u:
457 vwl starttype #u endtype #u
458 length 210
459 IF nextPh(l/2) THEN
460 FMT(vwl_en/u_L)
461 ENDIF
462 IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
463 length 160
464 ENDIF
465 FMT(vdiph2/uw_2)
466 endphoneme
467
468
469 phoneme aU
470 vwl starttype #a endtype #u
471 length 230
472 FMT(vdiph/au)
473 endphoneme
474
475
476 phoneme oU
477 vwl starttype #@ endtype #u
478 ipa əʊ
479 length 220
480 FMT(vdiph/@u_en)
481 endphoneme
482
483
484 phoneme oU#
485 vwl
486 IF thisPh(isStressed) THEN
487 ChangePhoneme(0)
488 ENDIF
489
490 IF nextVowel(isStressed) OR prevVowel(isStressed) THEN
491 ChangePhoneme(@)
492 ENDIF
493
494 ChangePhoneme(oU)
495 endphoneme
496
497
498 phoneme aI
499 vwl starttype #a endtype #i
500 length 240
501 IF nextPh(#a) THEN
502 AppendPhoneme(;)
503 ENDIF
504 FMT(vdiph/ai_2)
505 endphoneme
506
507
508 phoneme eI
509 vwl starttype #e endtype #i
510 length 210
511 FMT(vdiph/eei)
512 endphoneme
513
514
515 phoneme OI
516 vwl starttype #o endtype #i
517 length 230
518 FMT(vdiph/ooi)
519 endphoneme
520
521
522 phoneme e@
523 vwl starttype #e endtype #@
524 length 230
525 IfNextVowelAppend(r-)
526 FMT(vowel/ee_1)
527 endphoneme
528
529
530 phoneme i@
531 vwl starttype #i endtype #@
532 length 250
533 IfNextVowelAppend(r-)
534 FMT(vdiph2/ii@)
535 endphoneme
536
537
538 phoneme i@3
539 vwl starttype #i endtype #@
540 length 250
541
542 IF MbrolaSynth THEN
543 ChangePhoneme(i@)
544 ENDIF
545
546 IfNextVowelAppend(r-)
547 FMT(vdiph2/ii@)
548 endphoneme
549
550
551 phoneme U@
552 vwl starttype #u endtype #@
553 length 200
554 IfNextVowelAppend(r-)
555 IF thisPh(isUnstressed) THEN
556 FMT(vdiph2/8@)
557 ENDIF
558 FMT(vdiph2/uu@)
559 endphoneme
560
561
562 phoneme aI@ // sc**ie**nce
563 vwl starttype #a endtype #@
564 length 280
565 IfNextVowelAppend(r-)
566 FMT(vwl_en/aI@)
567 endphoneme
568
569
570 phoneme aI3
571 vwl starttype #a endtype #@
572 length 280
573 ChangePhoneme(aI@)
574 endphoneme
575
576
577 phoneme aU@ // h**our**
578 vwl starttype #a endtype #@
579 length 280
580 IfNextVowelAppend(r-)
581 FMT(vwl_en/aU@)
582 endphoneme
583
584
585
586
587 phoneme IR // used for "ir" when [3:] is split (Scottish)
588 vwl starttype #@ endtype #@
589 length 190
590 ipa əɹ
591 IF nextPhW(r-) THEN
592 ipa ə
593 ENDIF
594 IfNextVowelAppend(r-)
595 FMT(vowelr/V_r)
596 endphoneme
597
598
599 phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
600 vwl starttype #@ endtype #@
601 length 210
602 ipa ʌɹ
603 IF nextPhW(r-) THEN
604 ipa ʌ
605 ENDIF
606 IfNextVowelAppend(r-)
607 FMT(vowelr/V3_r)
608 endphoneme
609
610
611 phoneme o:
612 vwl starttype #o endtype #o
613 length 220
614 FMT(vowel/o)
615 endphoneme
616
617
618 phoneme A~
619 vwl starttype #a endtype #a
620 length 260
621 FMT(vnasal/aa_n2)
622 endphoneme
623
624
625 phoneme O~
626 vwl starttype #o endtype #o
627 length 240
628 FMT(vnasal/oo_n2)
629 endphoneme
630
631
632 phoneme e:
633 vwl starttype #e endtype #e
634 length 210
635 FMT(vowel/e)
636 endphoneme
637
638
639 phoneme e# // **E**XPLORE
640 vwl
641 ChangePhoneme(E)
642 endphoneme
643
644
645 phoneme a#2 // for word 'an'
646 vwl
647 IF next2Ph(isVowel) THEN
648 ChangePhoneme(a#)
649 ELSE
650 ChangePhoneme(a)
651 ENDIF
652 endphoneme
653
654
655 phoneme @# // TEST: [@] which is slightly more 'front'
656 vwl starttype #i endtype #i
657 unstressed
658 length 130
659 FMT(vowel/@_3)
660 endphoneme
661