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 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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. FMT(vowel/@_4)
  20. endphoneme
  21. phoneme @/ // Schwa, end of word
  22. vowel starttype #@ endtype #@
  23. unstressed
  24. length 130
  25. FMT(vowel/@_low2)
  26. endphoneme
  27. phoneme @2 // Schwa, changes to I before a vowel
  28. vowel starttype #@ endtype #@
  29. unstressed
  30. length 120
  31. IF nextPh(isVowel) THEN
  32. ChangePhoneme(I2)
  33. ENDIF
  34. FMT(vowel/@_low2)
  35. endphoneme
  36. phoneme @L
  37. vowel starttype #@ endtype l
  38. ipa əl
  39. unstressed
  40. length 160
  41. FMT(vwl_en/@L)
  42. endphoneme
  43. phoneme a
  44. vowel starttype #e endtype #@
  45. ipa æ
  46. length 210
  47. ChangeIfDiminished(a#)
  48. IF nextPh(isNasal) THEN
  49. FMT(vnasal/ee_n2)
  50. ENDIF
  51. FMT(vwl_en_us/a)
  52. endphoneme
  53. phoneme aa // 'bath' etc.
  54. import_phoneme en-us/a
  55. endphoneme
  56. phoneme a#
  57. vowel starttype #@ endtype #@
  58. ipa ɐ
  59. unstressed
  60. length 150
  61. FMT(vowel/a#_3)
  62. endphoneme
  63. phoneme E
  64. vowel starttype #e endtype #e
  65. length 195
  66. ChangeIfDiminished(I2)
  67. FMT(vwl_en_us/ee)
  68. endphoneme
  69. phoneme I
  70. vowel starttype #i endtype #i
  71. length 160
  72. IfNextVowelAppend(;)
  73. ChangeIfDiminished(I2)
  74. FMT(vowel/ii_4)
  75. endphoneme
  76. phoneme I2
  77. vowel starttype #i endtype #i
  78. unstressed
  79. length 160
  80. IfNextVowelAppend(;)
  81. FMT(vowel/ii#_3)
  82. endphoneme
  83. phoneme I#
  84. vowel starttype #i endtype #i
  85. unstressed
  86. length 160
  87. // FMT(vowel/@_fnt)
  88. FMT(vowel/ii#)
  89. endphoneme
  90. phoneme i // optional variant of [I] for end of words
  91. vowel starttype #i endtype #i
  92. unstressed
  93. length 170
  94. IfNextVowelAppend(;)
  95. FMT(vowel/ii_final)
  96. endphoneme
  97. phoneme 0
  98. vowel starttype #a endtype #a
  99. length 200
  100. ipa ɑː
  101. ChangeIfDiminished(@)
  102. IF nextPh(r) THEN
  103. ChangePhoneme(O:)
  104. ENDIF
  105. FMT(vowel/aa_8)
  106. endphoneme
  107. phoneme V
  108. vowel starttype #a endtype #@
  109. length 170
  110. ChangeIfDiminished(@)
  111. FMT(vowel/V_6)
  112. endphoneme
  113. phoneme U
  114. vowel starttype #o endtype #o
  115. length 145
  116. FMT(vowel/8_2)
  117. endphoneme
  118. phoneme A:
  119. vowel starttype #a endtype #a
  120. length 200
  121. IF nextPh(r) THEN
  122. FMT(vwl_en_us/ar)
  123. ENDIF
  124. FMT(vowel/aa_8)
  125. endphoneme
  126. phoneme A@ // Used for [A:] when followed by 'r', becomes [A:]+[r] in American
  127. vowel starttype #a endtype #a
  128. ipa ɑːɹ
  129. IF nextPh(r-) THEN
  130. ipa ɑː
  131. ENDIF
  132. length 260
  133. IfNextVowelAppend(r-)
  134. FMT(vwl_en_us/ar)
  135. endphoneme
  136. phoneme 3:
  137. vowel starttype #@ endtype #@
  138. length 240
  139. IfNextVowelAppend(r-)
  140. FMT(vwl_en_us/3_us2)
  141. endphoneme
  142. phoneme i:
  143. vowel starttype #i endtype #i
  144. length 170
  145. IfNextVowelAppend(;)
  146. FMT(vowel/i_en)
  147. endphoneme
  148. phoneme O:
  149. vowel starttype #o endtype #o
  150. length 210
  151. ChangeIfDiminished(@)
  152. IF nextPh(r) THEN
  153. FMT(vwl_en_us/oor)
  154. ENDIF
  155. FMT(vowel/0_3)
  156. endphoneme
  157. phoneme O@
  158. vowel starttype #o endtype #@
  159. length 250
  160. ipa ɔːɹ
  161. IF nextPhW(r) THEN
  162. ipa ɔː
  163. ENDIF
  164. IfNextVowelAppend(r)
  165. FMT(vwl_en_us/oor)
  166. endphoneme
  167. phoneme o@
  168. vowel starttype #o endtype #@
  169. length 250
  170. ipa oːɹ
  171. IF nextPhW(r) THEN
  172. ipa oː
  173. ENDIF
  174. IfNextVowelAppend(r)
  175. FMT(vwl_en_us/or)
  176. endphoneme
  177. phoneme O
  178. vowel starttype #o endtype #o
  179. length 200
  180. ChangeIfDiminished(@)
  181. FMT(vowel/aa#)
  182. endphoneme
  183. phoneme u:
  184. vowel starttype #u endtype #u
  185. length 190
  186. FMT(vdiph2/uw_6)
  187. endphoneme
  188. phoneme aU
  189. vowel starttype #a endtype #o
  190. length 235
  191. FMT(vdiph/aoo)
  192. endphoneme
  193. phoneme oU
  194. vowel starttype #@ endtype #u
  195. length 230
  196. FMT(vdiph/8u)
  197. endphoneme
  198. phoneme aI
  199. vowel starttype #a endtype #i
  200. length 250
  201. IF nextPh(#a) OR nextPh(#o) THEN
  202. AppendPhoneme(;)
  203. ENDIF
  204. FMT(vdiph/aae)
  205. endphoneme
  206. phoneme eI
  207. vowel starttype #e endtype #i
  208. length 230
  209. FMT(vdiph2/ei_4)
  210. endphoneme
  211. phoneme OI
  212. vowel starttype #o endtype #i
  213. length 285
  214. FMT(vdiph/ooi_4)
  215. endphoneme
  216. phoneme e@
  217. vowel starttype #e endtype #@
  218. length 280
  219. ipa ɛɹ
  220. IF nextPhW(r) THEN
  221. ipa ɛ
  222. ENDIF
  223. IfNextVowelAppend(r)
  224. FMT(vwl_en_us/er)
  225. endphoneme
  226. phoneme i@
  227. vowel starttype #i endtype #@
  228. length 250
  229. FMT(vdiph2/ii@) // don't append [r] before a vowel
  230. endphoneme
  231. phoneme i@3
  232. vowel starttype #i endtype #@
  233. length 280
  234. ipa ɪɹ
  235. IF nextPhW(r) THEN
  236. ipa ɪ
  237. ENDIF
  238. IfNextVowelAppend(r)
  239. FMT(vwl_en_us/ir)
  240. endphoneme
  241. phoneme U@
  242. vowel starttype #@ endtype #@
  243. length 250
  244. ipa ʊɹ
  245. IF nextPhW(r-) THEN
  246. ipa ʊ
  247. ENDIF
  248. IfNextVowelAppend(r-)
  249. FMT(vwl_en_us/ur)
  250. endphoneme
  251. phoneme aI@
  252. vowel starttype #a endtype #@
  253. length 300
  254. ipa aɪə
  255. IfNextVowelAppend(r-)
  256. FMT(vwl_en_us/ai@)
  257. endphoneme
  258. phoneme aI3
  259. vowel starttype #a endtype #@
  260. length 300
  261. ipa aɪɚ
  262. IfNextVowelAppend(r-)
  263. FMT(vwl_en_us/ai3)
  264. endphoneme
  265. phoneme aU@
  266. vowel starttype #a endtype #@
  267. length 300
  268. ipa aɪʊɹ
  269. IF nextPhW(r) THEN
  270. ipa aɪʊ
  271. ENDIF
  272. IfNextVowelAppend(r)
  273. FMT(vwl_en_us/aU@)
  274. endphoneme
  275. //==============
  276. // Consonants
  277. //==============
  278. phoneme r/ // used for [r] when not preceding a vowel
  279. liquid
  280. lengthmod 2 //
  281. // formants NULL
  282. endphoneme
  283. phoneme t
  284. vls alv stop
  285. voicingswitch d
  286. lengthmod 2
  287. // IF prevPhW(isVowel) OR prevPhW(n) THEN
  288. IF prevPhW(isVowel) THEN // test, don't reduce [t] after [n]
  289. IF nextPhW(isVowel) AND nextPh(isUnstressed) THEN
  290. IF next2Ph(n) AND next2Ph(notWordStart) THEN
  291. ELSE
  292. ChangePhoneme(t#)
  293. ENDIF
  294. ENDIF
  295. ENDIF
  296. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  297. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  298. IF nextPh(isPause2) THEN
  299. WAV(ustop/t_)
  300. ELIF nextPh(r) OR nextPh(R) OR nextPh(R2) THEN
  301. WAV(ustop/tr)
  302. ELIF nextPh(@-) THEN
  303. WAV(ustop/t_dnt, 50)
  304. ENDIF
  305. WAV(ustop/t, 90)
  306. endphoneme
  307. phoneme t2 // [t] which doesn't reduce
  308. import_phoneme base/t
  309. endphoneme