eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ph_english_us 7.1KB

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