ph_english 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. phoneme t2 // [t] which doesn't reduce
  2. vcd alv stp
  3. ChangePhoneme(t)
  4. endphoneme
  5. phoneme t# // reduced [t] as in "city" in en-us
  6. vcd alv stp
  7. ChangePhoneme(t)
  8. endphoneme
  9. phoneme d# // change to [d] or [t] depending on whether previous phoneme is voiced
  10. vls alv stp
  11. IF prevPh(isVoiced) THEN
  12. ChangePhoneme(d)
  13. ELSE
  14. ChangePhoneme(t)
  15. ENDIF
  16. endphoneme
  17. phoneme z# // change to [z] or [s] depending on whether previous phoneme is voiced
  18. vls alv frc sib
  19. IF prevPh(isVoiced) THEN
  20. ChangePhoneme(z)
  21. ELSE
  22. ChangePhoneme(s)
  23. ENDIF
  24. endphoneme
  25. phoneme l // use dark [l/2] before not-vowel
  26. liquid
  27. lengthmod 7
  28. IF NOT nextPhW(isVowel) THEN
  29. IF prevPh(isVowel) OR prevPh(j) OR prevPh(w) THEN
  30. ChangePhoneme(l/2)
  31. ELSE
  32. ChangePhoneme(l/)
  33. ENDIF
  34. ENDIF
  35. CALL base1/l
  36. endphoneme
  37. phoneme r- // linking r, used in English between certain vowels and a following vowel
  38. liquid rhotic
  39. ipa ɹ
  40. IF NOT thisPh(isWordEnd) AND NOT prevPh(@) AND NOT prevPh(3) THEN
  41. ChangePhoneme(r)
  42. ENDIF
  43. lengthmod 0
  44. NextVowelStarts
  45. VowelStart(r2/r2@)
  46. VowelStart(r2/r2a)
  47. VowelStart(r2/r2e)
  48. VowelStart(r2/r2i)
  49. VowelStart(r2/r2o)
  50. VowelStart(r2/r2u)
  51. EndSwitch
  52. IF prevPh(isVowel) THEN
  53. VowelEnding(r/xr, -60)
  54. ENDIF
  55. FMT(r/r)
  56. endphoneme
  57. phoneme z/2 // used for 's suffix
  58. vcd alv frc sib
  59. lengthmod 6
  60. IF prevPh(isSibilant) THEN
  61. InsertPhoneme(I2)
  62. ENDIF
  63. IF NOT prevPh(isVoiced) THEN
  64. ChangePhoneme(s)
  65. ENDIF
  66. ChangePhoneme(z)
  67. endphoneme
  68. phoneme w#
  69. vls glt apr // [h]
  70. ipa ʍ
  71. IF nextPh(isVowel) THEN
  72. NextVowelStarts
  73. VowelStart(w/w@)
  74. VowelStart(w/wa)
  75. VowelStart(w/we)
  76. VowelStart(w/wi)
  77. VowelStart(w/wo)
  78. VowelStart(w/wu)
  79. EndSwitch
  80. ENDIF
  81. WAV(h/hu, 70)
  82. endphoneme
  83. phoneme n
  84. vcd alv nas
  85. lengthmod 4
  86. ipa n
  87. IF nextPhW(isVelar) THEN // /n/ is velarized to /N/ when before velar stops
  88. ChangePhoneme(N)
  89. ENDIF
  90. CALL base1/n
  91. endphoneme
  92. //*******************************************************************
  93. // VOWELS
  94. //*******************************************************************
  95. phoneme @
  96. vwl starttype #@ endtype #@
  97. unstressed
  98. length 140
  99. IfNextVowelAppend(r-)
  100. IF thisPh(isWordEnd) THEN
  101. FMT(vowel/@_6, 90)
  102. ENDIF
  103. FMT(vowel/@)
  104. endphoneme
  105. phoneme 3
  106. CALL @
  107. ipa ə
  108. endphoneme
  109. phoneme @2 // Schwa, changes to I before a vowel. th**e**, used only for "the".
  110. vwl starttype #@ endtype #@
  111. unstressed
  112. length 120
  113. IF nextPh(isVowel) THEN
  114. ChangePhoneme(I2)
  115. ENDIF
  116. ChangePhoneme(@)
  117. endphoneme
  118. phoneme @5 // Schwa, changes to U before a vowel. t**o**, used only for "to".
  119. vwl starttype #@ endtype #@
  120. unstressed
  121. length 140
  122. IF nextPh(isVowel) OR nextPh(isPause) THEN
  123. ChangePhoneme(U)
  124. ENDIF
  125. ChangePhoneme(@)
  126. endphoneme
  127. phoneme @L // simp**le**
  128. vwl starttype #@ endtype l
  129. ipa ə|l
  130. unstressed
  131. length 160
  132. CALL vowelstart_l
  133. FMT(vwl_en/@L)
  134. endphoneme
  135. phoneme a
  136. vwl starttype #a endtype #a
  137. length 160
  138. ChangeIfDiminished(a#)
  139. IF thisPh(isUnstressed) THEN
  140. FMT(vowel/a_8)
  141. ENDIF
  142. FMT(vowel/a)
  143. endphoneme
  144. phoneme a2 // don't reduce to a#
  145. vwl
  146. ChangePhoneme(a)
  147. endphoneme
  148. phoneme a# // **a**bout. This may be \[@\] or may be a more open schwa.
  149. vwl starttype #@ endtype #@
  150. ipa ɐ
  151. unstressed
  152. length 150
  153. IF NOT thisPh(isUnstressed) THEN
  154. ChangePhoneme(a) // syllable has an explicit stress
  155. ENDIF
  156. FMT(vowel/a#_3)
  157. endphoneme
  158. phoneme aa
  159. vwl starttype #a endtype #a
  160. ipa a
  161. length 200
  162. IF MbrolaSynth THEN
  163. ChangePhoneme(A:)
  164. ENDIF
  165. IfNextVowelAppend(r-)
  166. FMT(vowel/a_6, 88)
  167. endphoneme
  168. phoneme E
  169. vwl starttype #e endtype #e
  170. length 140
  171. IF nextPhW(n) THEN
  172. ChangeIfDiminished(@)
  173. ELSE
  174. ChangeIfDiminished(I2)
  175. ENDIF
  176. FMT(vowel/ee_5)
  177. endphoneme
  178. phoneme E# // [@] in unstressed syllables, if next vowel is stressed
  179. vwl starttype #e endtype #e
  180. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND nextVowel(isStressed) THEN
  181. ChangePhoneme(@)
  182. ENDIF
  183. ChangePhoneme(E)
  184. endphoneme
  185. phoneme E2 // does not reduce in unstressed syllables
  186. vwl starttype #e endtype #e
  187. length 140
  188. ChangePhoneme(E) // a second change ([E] to [I2]) won't happen
  189. endphoneme
  190. phoneme I
  191. vwl starttype #i endtype #i
  192. length 130
  193. IfNextVowelAppend(;)
  194. FMT(vowel/ii_2)
  195. endphoneme
  196. phoneme I2 // **i**ntend. As \[I\], but also indicates an unstressed syllable.
  197. vwl starttype #i endtype #i
  198. unstressed
  199. length 130
  200. IF MbrolaSynth THEN
  201. ChangePhoneme(I)
  202. ENDIF
  203. IfNextVowelAppend(;)
  204. IF thisPh(isAfterStress) AND thisPh(isFinalVowel) THEN
  205. FMT(vowel/ii#_3)
  206. ENDIF
  207. FMT(vowel/ii_4)
  208. endphoneme
  209. phoneme I# // used for [I] which may be [@] in some accents
  210. vwl starttype #i endtype #i
  211. unstressed
  212. length 130
  213. IF MbrolaSynth THEN
  214. ChangePhoneme(I)
  215. ENDIF
  216. IfNextVowelAppend(;)
  217. ChangePhoneme(I2)
  218. endphoneme
  219. phoneme I2# // used for [I] in -ed adjectives which may be [E] in some accents
  220. vwl starttype #@ endtype #@
  221. unstressed
  222. IfNextVowelAppend(;)
  223. ChangePhoneme(I2)
  224. endphoneme
  225. phoneme i
  226. vwl starttype #i endtype #i
  227. unstressed
  228. ipa i
  229. length 150
  230. IfNextVowelAppend(;)
  231. // IF NOT thisPh(isFinalVowel) THEN
  232. // ChangePhoneme(I)
  233. // ENDIF
  234. FMT(vowel/ii_7)
  235. endphoneme
  236. phoneme 0
  237. vwl starttype #o endtype #o
  238. length 140
  239. ChangeIfDiminished(@)
  240. FMT(vowel/0)
  241. endphoneme
  242. phoneme 0# // [@] in unstressed syllables
  243. vwl starttype #o endtype #o
  244. IF thisPh(isUnstressed) AND nextVowel(isVowel) AND NOT nextVowel(isUnstressed) THEN
  245. ChangePhoneme(@)
  246. ENDIF
  247. ChangePhoneme(0)
  248. endphoneme
  249. phoneme 02 // becomes V in en-us
  250. vwl starttype #o endtype #o
  251. length 140
  252. ChangePhoneme(0)
  253. endphoneme
  254. phoneme O2
  255. vwl starttype #o endtype #o
  256. length 140
  257. ChangePhoneme(0)
  258. endphoneme
  259. phoneme V
  260. vwl starttype #a endtype #@
  261. length 140
  262. ChangeIfDiminished(@)
  263. FMT(vowel/V_2)
  264. endphoneme
  265. phoneme U
  266. vwl starttype #o endtype #o
  267. length 150
  268. IF prevPhW(j) THEN
  269. length 130
  270. FMT(vowel/8_2)
  271. ENDIF
  272. FMT(vowel/uu)
  273. endphoneme
  274. phoneme A:
  275. vwl starttype #a endtype #a
  276. length 230
  277. IfNextVowelAppend(r-)
  278. FMT(vowel/aa_2)
  279. endphoneme
  280. phoneme A@
  281. vwl starttype #a endtype #a
  282. ipa ɑː
  283. length 230
  284. IfNextVowelAppend(r-)
  285. FMT(vowel/aa_2)
  286. endphoneme
  287. phoneme A# // [a] in British [A:] in American
  288. vwl starttype #a endtype #a
  289. ChangePhoneme(a)
  290. endphoneme
  291. phoneme 3:
  292. vwl starttype #@ endtype #@
  293. length 210
  294. IfNextVowelAppend(r-)
  295. ChangeIfDiminished(@)
  296. FMT(vowel/3_en)
  297. endphoneme
  298. phoneme i:
  299. vwl starttype #i endtype #i
  300. length 175
  301. IfNextVowelAppend(;)
  302. IF prevPh(w) THEN
  303. VowelStart(w/wi2)
  304. ENDIF
  305. FMT(vowel/i_en)
  306. endphoneme
  307. phoneme O:
  308. vwl starttype #o endtype #o
  309. length 230
  310. ChangeIfDiminished(@)
  311. FMT(vowel/oo_en)
  312. endphoneme
  313. phoneme O
  314. vwl starttype #o endtype #o
  315. length 200
  316. ChangeIfDiminished(@)
  317. FMT(vowel/oo_en)
  318. endphoneme
  319. phoneme O@
  320. vwl starttype #o endtype #o
  321. ipa ɔː
  322. length 240
  323. IfNextVowelAppend(r-)
  324. FMT(vowel/oo_en)
  325. endphoneme
  326. phoneme o@
  327. vwl starttype #o endtype #o
  328. ipa ɔː
  329. length 250
  330. IF MbrolaSynth THEN
  331. ChangePhoneme(O@)
  332. ENDIF
  333. IfNextVowelAppend(r-)
  334. FMT(vowel/oo_en)
  335. endphoneme
  336. phoneme u:
  337. vwl starttype #u endtype #u
  338. length 210
  339. IF nextPh(l/2) THEN
  340. FMT(vwl_en/u_L)
  341. ENDIF
  342. IF prevPhW(j) AND NOT thisPh(isWordEnd) THEN
  343. length 160
  344. ENDIF
  345. FMT(vdiph2/uw_2)
  346. endphoneme
  347. phoneme aU
  348. vwl starttype #a endtype #u
  349. length 230
  350. FMT(vdiph/au)
  351. endphoneme
  352. phoneme oU
  353. vwl starttype #@ endtype #u
  354. ipa əʊ
  355. length 220
  356. FMT(vdiph/@u_en)
  357. endphoneme
  358. phoneme oU#
  359. vwl
  360. IF thisPh(isStressed) THEN
  361. ChangePhoneme(0)
  362. ENDIF
  363. IF nextVowel(isStressed) OR prevVowel(isStressed) THEN
  364. ChangePhoneme(@)
  365. ENDIF
  366. ChangePhoneme(oU)
  367. endphoneme
  368. phoneme aI
  369. vwl starttype #a endtype #i
  370. length 240
  371. IF nextPh(#a) THEN
  372. AppendPhoneme(;)
  373. ENDIF
  374. FMT(vdiph/ai_2)
  375. endphoneme
  376. phoneme eI
  377. vwl starttype #e endtype #i
  378. length 210
  379. FMT(vdiph/eei)
  380. endphoneme
  381. phoneme OI
  382. vwl starttype #o endtype #i
  383. length 230
  384. FMT(vdiph/ooi)
  385. endphoneme
  386. phoneme e@
  387. vwl starttype #e endtype #@
  388. length 230
  389. IfNextVowelAppend(r-)
  390. FMT(vowel/ee_1)
  391. endphoneme
  392. phoneme i@
  393. vwl starttype #i endtype #@
  394. length 250
  395. IfNextVowelAppend(r-)
  396. FMT(vdiph2/ii@)
  397. endphoneme
  398. phoneme i@3
  399. vwl starttype #i endtype #@
  400. length 250
  401. IF MbrolaSynth THEN
  402. ChangePhoneme(i@)
  403. ENDIF
  404. IfNextVowelAppend(r-)
  405. FMT(vdiph2/ii@)
  406. endphoneme
  407. phoneme U@
  408. vwl starttype #u endtype #@
  409. length 200
  410. IfNextVowelAppend(r-)
  411. IF thisPh(isUnstressed) THEN
  412. FMT(vdiph2/8@)
  413. ENDIF
  414. FMT(vdiph2/uu@)
  415. endphoneme
  416. phoneme aI@ // sc**ie**nce
  417. vwl starttype #a endtype #@
  418. length 280
  419. IfNextVowelAppend(r-)
  420. FMT(vwl_en/aI@)
  421. endphoneme
  422. phoneme aI3
  423. vwl starttype #a endtype #@
  424. length 280
  425. ChangePhoneme(aI@)
  426. endphoneme
  427. phoneme aU@ // h**our**
  428. vwl starttype #a endtype #@
  429. length 280
  430. IfNextVowelAppend(r-)
  431. FMT(vwl_en/aU@)
  432. endphoneme
  433. phoneme IR // used for "ir" when [3:] is split (Scottish)
  434. vwl starttype #@ endtype #@
  435. length 190
  436. ipa əɹ
  437. IF nextPhW(r-) THEN
  438. ipa ə
  439. ENDIF
  440. IfNextVowelAppend(r-)
  441. FMT(vowelr/V_r)
  442. endphoneme
  443. phoneme VR // used for "or"/"ur" when [3:] is split (Scottish)
  444. vwl starttype #@ endtype #@
  445. length 210
  446. ipa ʌɹ
  447. IF nextPhW(r-) THEN
  448. ipa ʌ
  449. ENDIF
  450. IfNextVowelAppend(r-)
  451. FMT(vowelr/V3_r)
  452. endphoneme
  453. phoneme o:
  454. vwl starttype #o endtype #o
  455. length 220
  456. FMT(vowel/o)
  457. endphoneme
  458. phoneme A~
  459. vwl starttype #a endtype #a
  460. length 260
  461. FMT(vnasal/aa_n2)
  462. endphoneme
  463. phoneme O~
  464. vwl starttype #o endtype #o
  465. length 240
  466. FMT(vnasal/oo_n2)
  467. endphoneme
  468. phoneme e:
  469. vwl starttype #e endtype #e
  470. length 210
  471. FMT(vowel/e)
  472. endphoneme
  473. phoneme e# // **E**XPLORE
  474. vwl
  475. ChangePhoneme(E)
  476. endphoneme
  477. phoneme a#2 // for word 'an'
  478. vwl
  479. IF next2Ph(isVowel) THEN
  480. ChangePhoneme(a#)
  481. ELSE
  482. ChangePhoneme(a)
  483. ENDIF
  484. endphoneme
  485. phoneme @# // TEST: [@] which is slightly more 'front'
  486. vwl starttype #i endtype #i
  487. unstressed
  488. length 130
  489. FMT(vowel/@_3)
  490. endphoneme