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 vowel 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 vowel 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 vowel 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 vowel 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 vowel 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 vowel 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 vowel 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 vowel starttype #i endtype #i
110 unstressed
111 length 160
112 IfNextVowelAppend(;)
113 FMT(vowel/ii#_3)
114 endphoneme
115
116
117 phoneme I#
118 vowel starttype #i endtype #i
119 unstressed
120 length 160
121 ipa ᵻ
122 // FMT(vowel/@_fnt)
123 FMT(vowel/ii#)
124 endphoneme
125
126
127
128 phoneme i // optional variant of [I] for end of words
129 vowel starttype #i endtype #i
130 unstressed
131 length 170
132 IfNextVowelAppend(;)
133
134 IF NOT thisPh(isFinalVowel) THEN
135 ChangePhoneme(I)
136 ENDIF
137
138 FMT(vowel/ii_final)
139 endphoneme
140
141
142 phoneme 0
143 vowel starttype #a endtype #a
144 length 220
145 ipa ɑː
146 ChangeIfDiminished(@)
147 IF nextPh(r) THEN
148 ChangePhoneme(O:)
149 ENDIF
150 FMT(vowel/aa_8)
151 endphoneme
152
153
154 phoneme 02 // becomes V in en-us
155 vowel starttype #o endtype #o
156 length 140
157 ChangePhoneme(V)
158 endphoneme
159
160
161 phoneme V
162 vowel starttype #a endtype #@
163 length 170
164 ChangeIfDiminished(@)
165 FMT(vowel/V_6)
166 endphoneme
167
168
169 phoneme U
170 vowel starttype #o endtype #o
171 length 145
172 FMT(vowel/8_2)
173 endphoneme
174
175
176 phoneme A:
177 vowel starttype #a endtype #a
178 length 220
179 IF nextPhW(r) THEN
180 FMT(vwl_en_us/aar)
181 ENDIF
182 FMT(vowel/aa_8)
183 endphoneme
184
185
186 phoneme A@ // Used for [A:] when followed by 'r', becomes [A:]+[r] in American
187 vowel starttype #a endtype #a
188 ipa ɑː|ɹ
189 IF nextPh(r-) THEN
190 ipa ɑː
191 ENDIF
192 length 260
193 IfNextVowelAppend(r-)
194 FMT(vwl_en_us/aar)
195 endphoneme
196
197
198 phoneme A# // [a] in British [A:] in American
199 vowel starttype #a endtype #a
200 ChangePhoneme(A:)
201 endphoneme
202
203
204 phoneme 3:
205 vowel starttype #@ endtype #@
206 length 210
207 IfNextVowelAppend(r-)
208 ChangeIfDiminished(3)
209 FMT(vwl_en_us/3_us2)
210 endphoneme
211
212
213 phoneme i:
214 vowel starttype #i endtype #i
215 length 180
216 IfNextVowelAppend(;)
217 FMT(vowel/i_en)
218 endphoneme
219
220
221 phoneme O:
222 vowel starttype #o endtype #o
223 length 220
224 ChangeIfDiminished(@)
225 IF nextPhW(r) THEN
226 FMT(vwl_en_us/oor)
227 ENDIF
228 FMT(vowel/0_3)
229 endphoneme
230
231
232 phoneme O@
233 vowel starttype #o endtype #@
234 length 250
235 ipa ɔː|ɹ
236 IF nextPhW(r) THEN
237 ipa ɔː
238 ENDIF
239 IfNextVowelAppend(r)
240 FMT(vwl_en_us/oor)
241 endphoneme
242
243
244 phoneme o@
245 vowel starttype #o endtype #@
246 length 250
247 ipa oː|ɹ
248 IF nextPhW(r) THEN
249 ipa oː
250 ENDIF
251 IfNextVowelAppend(r)
252 FMT(vwl_en_us/or)
253 endphoneme
254
255
256 phoneme O
257 vowel starttype #o endtype #o
258 length 200
259 ChangeIfDiminished(@)
260 FMT(vowel/aa#)
261 endphoneme
262
263
264 phoneme u:
265 vowel starttype #u endtype #u
266 length 190
267
268 IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
269 length 160
270 ENDIF
271
272 FMT(vdiph2/uw_6)
273 endphoneme
274
275
276 phoneme aU
277 vowel starttype #a endtype #o
278 length 235
279 FMT(vdiph/aoo)
280 endphoneme
281
282
283 phoneme oU
284 vowel starttype #@ endtype #u
285 length 230
286 FMT(vdiph/8u)
287 endphoneme
288
289
290 phoneme aI
291 vowel starttype #a endtype #i
292 length 240
293 IF nextPh(#a) OR nextPh(#o) THEN
294 AppendPhoneme(;)
295 ENDIF
296 FMT(vwl_en_us/ai)
297 endphoneme
298
299
300 phoneme eI
301 vowel starttype #e endtype #i
302 length 220
303 FMT(vdiph2/ei_4)
304 // FMT(vdiph/eei_5)
305 endphoneme
306
307
308 phoneme OI
309 vowel starttype #o endtype #i
310 length 270
311 FMT(vdiph/ooi_3)
312 endphoneme
313
314
315 phoneme e@
316 vowel starttype #e endtype #@
317 length 260
318 ipa ɛ|ɹ
319 IF nextPhW(r) THEN
320 ipa ɛ
321 ENDIF
322 IfNextVowelAppend(r)
323 FMT(vwl_en_us/er)
324 endphoneme
325
326
327 phoneme i@
328 vowel starttype #i endtype #@
329 length 250
330 FMT(vdiph2/ii@) // don't append [r] before a vowel
331 endphoneme
332
333
334 phoneme i@3
335 vowel starttype #i endtype #@
336 length 280
337 ipa ɪ|ɹ
338 IF nextPhW(r) THEN
339 ipa ɪ
340 ENDIF
341 IfNextVowelAppend(r)
342 FMT(vwl_en_us/ir)
343 endphoneme
344
345
346 phoneme U@
347 vowel starttype #@ endtype #@
348 length 250
349 ipa ʊ|ɹ
350 IF nextPhW(r-) THEN
351 ipa ʊ
352 ENDIF
353 IfNextVowelAppend(r-)
354 FMT(vwl_en_us/ur)
355 endphoneme
356
357
358 phoneme aI@
359 vowel starttype #a endtype #@
360 length 300
361 ipa aɪə
362 IfNextVowelAppend(r-)
363 FMT(vwl_en_us/ai@)
364 endphoneme
365
366
367 phoneme aI3
368 vowel starttype #a endtype #@
369 length 310
370 ipa aɪɚ
371 IfNextVowelAppend(r-)
372 FMT(vwl_en_us/ai3)
373 endphoneme
374
375
376 phoneme aU@
377 vowel starttype #a endtype #@
378 length 300
379 ipa aɪʊɹ
380 IF nextPhW(r) THEN
381 ipa aɪʊ
382 ENDIF
383 IfNextVowelAppend(r)
384 FMT(vwl_en_us/aU@)
385 endphoneme
386
387
388 //==============
389 // Consonants
390 //==============
391
392 phoneme r/ // used for [r] when not preceding a vowel
393 liquid
394 lengthmod 2 //
395 // formants NULL
396 endphoneme
397
398
399 phoneme t# // reduced [t] as in "city"
400 vcd alv stop
401 ipa ɾ
402 lengthmod 5
403 Vowelin f1=1 f2=1700 -300 300 f3=-100 80
404 Vowelout f1=2 f2=1700 -300 300 f3=-100 80
405
406 IF nextPh(isNotVowel) THEN
407 ChangePhoneme(t)
408 ENDIF
409
410 IF KlattSynth THEN
411 IF PreVoicing THEN
412 FMT(klatt/x_tap)
413 ENDIF
414 FMT(klatt/tap2) addWav(x/d, 70)
415 ENDIF
416
417 IF PreVoicing THEN
418 FMT(d/x_tap)
419 ENDIF
420 FMT(d/tap2) addWav(x/d, 50)
421 endphoneme
422
423
424 phoneme t
425 vls alv stop
426 voicingswitch d
427 lengthmod 2
428 Vowelin f1=0 f2=1700 -300 300 f3=-100 80
429 Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
430
431 IF nextPhW(isVowel) AND nextPh(isUnstressed) THEN
432 IF NOT next2PhW(n) OR nextPhW(3:) THEN
433 IF prevPhW(isVowel) THEN
434 ChangePhoneme(t#)
435 ELIF prevPhW(n) THEN
436 WAV(ustop/t, 60)
437 ENDIF
438 ENDIF
439 ENDIF
440
441 IF nextPh(isPause2) THEN
442 WAV(ustop/t_)
443 ELIF nextPh(r) OR nextPh(R) OR nextPh(R2) THEN
444 WAV(ustop/tr)
445 ELIF nextPh(@-) THEN
446 WAV(ustop/t_dnt, 50)
447 ENDIF
448 WAV(ustop/t, 90)
449 endphoneme
450
451
452 phoneme t2 // [t] which doesn't reduce
453 import_phoneme base/t
454 endphoneme
455
456 phoneme ? // glottal stop
457 vls glt stop
458 lengthmod 1 // 5? longer preceding vowel
459 nolink
460 Vowelin glstop
461 Vowelout glstop
462 WAV(ustop/null)
463 endphoneme
464