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

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