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

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