Debian Codegraph @

phsource/ph_english_us_nyc

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