Debian Codegraph @

phsource/ph_english_us

raw
1
2 //*******************************************************************
3 // VOWELS
4 //*******************************************************************
5
6
7 phoneme 3 // Schwa, used for rhotic schwa in American
8 vwl starttype #@ endtype #@
9 ipa ɚ
10 unstressed
11 length 210
12 IfNextVowelAppend(r-)
13 FMT(vwl_en_us/3_us)
14 endphoneme
15
16
17 phoneme @ // Schwa
18 vwl starttype #@ endtype #@
19 unstressed
20 length 130
21 IF nextPh(isRhotic) THEN
22 ChangePhoneme(3)
23 ENDIF
24 IF thisPh(isWordEnd) THEN
25 FMT(vowel/@_6)
26 ENDIF
27 FMT(vowel/@_4)
28 endphoneme
29
30
31 phoneme @2 // Schwa, changes to I before a vowel
32 vwl starttype #@ endtype #@
33 unstressed
34 length 120
35 IF nextPh(isVowel) THEN
36 ChangePhoneme(I2)
37 ENDIF
38 FMT(vowel/@_low2)
39 endphoneme
40
41
42 phoneme a
43 vwl starttype #e endtype #@
44 ipa æ
45 length 210
46
47 ChangeIfDiminished(a#)
48
49 IF nextPh(isNasal) AND NOT KlattSynth THEN
50 FMT(vnasal/ee_n2)
51 ELSEIF nextPh(r) AND thisPh(isStressed) THEN
52 length 190
53 FMT(vwl_en_us/ar)
54 ENDIF
55 FMT(vwl_en_us/a)
56 endphoneme
57
58
59 phoneme aa // 'bath' etc.
60 import_phoneme en-us/a
61 endphoneme
62
63
64 phoneme a#
65 vwl starttype #@ endtype #@
66 ipa ɐ
67 unstressed
68 length 150
69
70 IF thisPh(isStressed) THEN
71 ChangePhoneme(a)
72 ENDIF
73
74 IF nextPhW(r) THEN
75 ChangePhoneme(3)
76 ENDIF
77
78 FMT(vowel/a#_3)
79 endphoneme
80
81
82 phoneme E
83 vwl starttype #e endtype #e
84 length 190
85 IF nextPhW(n) THEN
86 ChangeIfDiminished(@)
87 ELSE
88 ChangeIfDiminished(I2)
89 ENDIF
90 FMT(vwl_en_us/ee)
91 endphoneme
92
93
94 phoneme I
95 vwl starttype #i endtype #i
96 length 160
97 IfNextVowelAppend(;)
98 ChangeIfDiminished(I2)
99
100 IF nextPhW(r) THEN
101 length 200
102 ENDIF
103
104 FMT(vowel/ii_4)
105 endphoneme
106
107
108 phoneme I2
109 vwl starttype #i endtype #i
110 unstressed
111 length 160
112 IfNextVowelAppend(;)
113 FMT(vowel/ii#_3)
114 endphoneme
115
116
117 phoneme I#
118 vwl starttype #i endtype #i
119 unstressed
120 length 160
121 ipa ᵻ
122 // FMT(vowel/@_fnt)
123 FMT(vowel/ii#)
124 endphoneme
125
126
127 phoneme I2#
128 vwl starttype #i endtype #i
129 unstressed
130 ChangePhoneme(I#)
131 endphoneme
132
133
134 phoneme 0
135 vwl starttype #a endtype #a
136 length 220
137 ipa ɑː
138 ChangeIfDiminished(@)
139 IF nextPh(r) THEN
140 ChangePhoneme(O:)
141 ENDIF
142 FMT(vowel/aa_8)
143 endphoneme
144
145
146 phoneme 02 // becomes V in en-us
147 vwl starttype #o endtype #o
148 length 140
149 ChangePhoneme(V)
150 endphoneme
151
152
153 phoneme O2
154 vwl starttype #o endtype #o
155 length 220
156 FMT(vowel/aa#) // Same as /O/, but not diminished.
157 endphoneme
158
159
160 phoneme V
161 vwl starttype #a endtype #@
162 length 170
163 ChangeIfDiminished(@)
164 FMT(vowel/V_6)
165 endphoneme
166
167
168 phoneme U
169 vwl starttype #o endtype #o
170 length 145
171 FMT(vowel/8_2)
172 endphoneme
173
174
175 phoneme A:
176 vwl starttype #a endtype #a
177 length 220
178 IF nextPhW(r) THEN
179 FMT(vwl_en_us/aar)
180 ENDIF
181 FMT(vowel/aa_8)
182 endphoneme
183
184
185 phoneme A@ // Used for [A:] when followed by 'r', becomes [A:]+[r] in American
186 vwl starttype #a endtype #a
187 ipa ɑː|ɹ
188 IF nextPh(r-) THEN
189 ipa ɑː
190 ENDIF
191 length 260
192 IfNextVowelAppend(r-)
193 FMT(vwl_en_us/aar)
194 endphoneme
195
196
197 phoneme A# // [a] in British [A:] in American
198 vwl starttype #a endtype #a
199 ChangePhoneme(A:)
200 endphoneme
201
202
203 phoneme 3:
204 vwl starttype #@ endtype #@
205 length 210
206 IfNextVowelAppend(r-)
207 ChangeIfDiminished(3)
208 FMT(vwl_en_us/3_us2)
209 endphoneme
210
211
212 phoneme i:
213 vwl starttype #i endtype #i
214 length 180
215 IfNextVowelAppend(;)
216 FMT(vowel/i_en)
217 endphoneme
218
219
220 phoneme O:
221 vwl starttype #o endtype #o
222 length 220
223 ChangeIfDiminished(@)
224 IF nextPhW(r) THEN
225 FMT(vwl_en_us/oor)
226 ENDIF
227 FMT(vowel/0_3)
228 endphoneme
229
230
231 phoneme O@
232 vwl starttype #o endtype #@
233 length 250
234 ipa ɔː|ɹ
235 IF nextPhW(r) THEN
236 ipa ɔː
237 ENDIF
238 IfNextVowelAppend(r)
239 FMT(vwl_en_us/oor)
240 endphoneme
241
242
243 phoneme o@
244 vwl starttype #o endtype #@
245 length 250
246 ipa ɔː|ɹ
247 IF nextPhW(r) THEN
248 ipa ɔː
249 ENDIF
250 IfNextVowelAppend(r)
251 FMT(vwl_en_us/oor)
252 endphoneme
253
254
255 phoneme O
256 vwl starttype #o endtype #o
257 length 200
258 ChangeIfDiminished(@)
259 FMT(vowel/aa#)
260 endphoneme
261
262
263 phoneme u:
264 vwl starttype #u endtype #u
265 length 190
266
267 IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
268 length 160
269 ENDIF
270
271 FMT(vdiph2/uw_6)
272 endphoneme
273
274
275 phoneme aU
276 vwl starttype #a endtype #o
277 length 235
278 FMT(vdiph/aoo)
279 endphoneme
280
281
282 phoneme oU
283 vwl starttype #@ endtype #u
284 length 230
285 FMT(vdiph/8u)
286 endphoneme
287
288
289 phoneme aI
290 vwl starttype #a endtype #i
291 length 240
292 IF nextPh(#a) OR nextPh(#o) THEN
293 AppendPhoneme(;)
294 ENDIF
295 FMT(vwl_en_us/ai)
296 endphoneme
297
298
299 phoneme eI
300 vwl starttype #e endtype #i
301 length 220
302 FMT(vdiph2/ei_4)
303 // FMT(vdiph/eei_5)
304 endphoneme
305
306
307 phoneme OI
308 vwl starttype #o endtype #i
309 length 270
310 FMT(vdiph/ooi_3)
311 endphoneme
312
313
314 phoneme e@
315 vwl starttype #e endtype #@
316 length 260
317 ipa ɛ|ɹ
318 IF nextPhW(r) THEN
319 ipa ɛ
320 ENDIF
321 IfNextVowelAppend(r)
322 FMT(vwl_en_us/er)
323 endphoneme
324
325
326 phoneme i
327 vwl starttype #i endtype #i
328 unstressed
329 ipa i
330 length 170
331 IfNextVowelAppend(;)
332
333 IF NOT thisPh(isFinalVowel) THEN
334 length 130
335 FMT(vowel/ii_4)
336 ENDIF
337
338 FMT(vowel/ii_final)
339 endphoneme
340
341
342 phoneme i@
343 vwl starttype #i endtype #@
344 length 250
345 FMT(vdiph2/ii@) // don't append [r] before a vowel
346 endphoneme
347
348
349 phoneme i@3
350 vwl starttype #i endtype #@
351 length 280
352 ipa ɪ|ɹ
353 IF nextPhW(r) THEN
354 ipa ɪ
355 ENDIF
356 IfNextVowelAppend(r)
357 FMT(vwl_en_us/ir)
358 endphoneme
359
360
361 phoneme U@
362 vwl starttype #@ endtype #@
363 length 250
364 ipa ʊ|ɹ
365 IF nextPhW(r-) THEN
366 ipa ʊ
367 ENDIF
368 IfNextVowelAppend(r-)
369 FMT(vwl_en_us/ur)
370 endphoneme
371
372
373 phoneme aI@
374 vwl starttype #a endtype #@
375 length 300
376 ipa aɪə
377 IfNextVowelAppend(r-)
378 FMT(vwl_en_us/ai@)
379 endphoneme
380
381
382 phoneme aI3
383 vwl starttype #a endtype #@
384 length 310
385 ipa aɪɚ
386 IfNextVowelAppend(r-)
387 FMT(vwl_en_us/ai3)
388 endphoneme
389
390
391 phoneme aU@
392 vwl starttype #a endtype #@
393 length 300
394 ipa aɪʊɹ
395 IF nextPhW(r) THEN
396 ipa aɪʊ
397 ENDIF
398 IfNextVowelAppend(r)
399 FMT(vwl_en_us/aU@)
400 endphoneme
401
402
403 //==============
404 // Consonants
405 //==============
406
407 phoneme r/ // used for [r] when not preceding a vowel
408 liquid
409 lengthmod 2 //
410 // formants NULL
411 endphoneme
412
413
414 phoneme t# // reduced [t] as in "city"
415 vcd alv stp
416 ipa ɾ
417 lengthmod 5
418 Vowelin f1=1 f2=1700 -300 300 f3=-100 80
419 Vowelout f1=2 f2=1700 -300 300 f3=-100 80
420
421 IF nextPh(isNotVowel) THEN
422 ChangePhoneme(t)
423 ENDIF
424
425 IF KlattSynth THEN
426 IF PreVoicing THEN
427 FMT(klatt/x_tap)
428 ENDIF
429 FMT(klatt/tap2) addWav(x/d, 70)
430 ENDIF
431
432 IF PreVoicing THEN
433 FMT(d/x_tap)
434 ENDIF
435 FMT(d/tap2) addWav(x/d, 50)
436 endphoneme
437
438
439 phoneme t
440 vls alv stp
441 voicingswitch d
442 lengthmod 2
443 Vowelin f1=0 f2=1700 -300 300 f3=-100 80
444 Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
445
446 IF nextPhW(isVowel) AND nextPh(isUnstressed) THEN
447 IF NOT next2PhW(n) OR nextPhW(3:) THEN
448 IF prevPhW(isVowel) THEN
449 ChangePhoneme(t#)
450 ELIF prevPhW(n) THEN
451 WAV(ustop/t, 60)
452 ENDIF
453 ENDIF
454 ENDIF
455
456 IF nextPh(isPause2) THEN
457 WAV(ustop/t_)
458 ELIF nextPh(r) OR nextPh(R) OR nextPh(R2) THEN
459 WAV(ustop/tr)
460 ELIF nextPh(@-) THEN
461 WAV(ustop/t_dnt, 50)
462 ENDIF
463 WAV(ustop/t, 90)
464 endphoneme
465
466
467 phoneme t2 // [t] which doesn't reduce
468 import_phoneme base1/t
469 endphoneme
470
471 phoneme ? // glottal stp
472 vls glt stp
473 lengthmod 1 // 5? longer preceding vowel
474 nolink
475 Vowelin glstop
476 Vowelout glstop
477 WAV(ustop/null)
478 endphoneme
479