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.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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. // FMT(vwl_en_us/oor)
  105. ENDIF
  106. FMT(vowel/aa_8)
  107. endphoneme
  108. phoneme V
  109. vowel starttype #a endtype #@
  110. length 170
  111. ChangeIfDiminished(@)
  112. FMT(vowel/V_6)
  113. endphoneme
  114. phoneme U
  115. vowel starttype #o endtype #o
  116. length 145
  117. FMT(vowel/8_2)
  118. endphoneme
  119. phoneme A:
  120. vowel starttype #a endtype #a
  121. length 200
  122. IF nextPh(r) THEN
  123. FMT(vwl_en_us/ar)
  124. ENDIF
  125. FMT(vowel/aa_8)
  126. endphoneme
  127. phoneme A@ // Used for [A:] when followed by 'r', becomes [A:]+[r] in American
  128. vowel starttype #a endtype #a
  129. ipa ɑːɹ
  130. IF nextPh(r-) THEN
  131. ipa ɑː
  132. ENDIF
  133. length 260
  134. IfNextVowelAppend(r-)
  135. FMT(vwl_en_us/ar)
  136. endphoneme
  137. phoneme 3:
  138. vowel starttype #@ endtype #@
  139. length 240
  140. IfNextVowelAppend(r-)
  141. FMT(vwl_en_us/3_us2)
  142. endphoneme
  143. phoneme i:
  144. vowel starttype #i endtype #i
  145. length 170
  146. IfNextVowelAppend(;)
  147. FMT(vowel/i_en)
  148. endphoneme
  149. phoneme O:
  150. vowel starttype #o endtype #o
  151. length 210
  152. ChangeIfDiminished(@)
  153. IF nextPh(r) THEN
  154. FMT(vwl_en_us/oor)
  155. ENDIF
  156. FMT(vowel/0_3)
  157. endphoneme
  158. phoneme O@
  159. vowel starttype #o endtype #@
  160. length 250
  161. ipa ɔːɹ
  162. IF nextPhW(r) THEN
  163. ipa ɔː
  164. ENDIF
  165. IfNextVowelAppend(r)
  166. FMT(vwl_en_us/oor)
  167. endphoneme
  168. phoneme o@
  169. vowel starttype #o endtype #@
  170. length 250
  171. ipa oːɹ
  172. IF nextPhW(r) THEN
  173. ipa oː
  174. ENDIF
  175. IfNextVowelAppend(r)
  176. FMT(vwl_en_us/or)
  177. endphoneme
  178. phoneme O
  179. vowel starttype #o endtype #o
  180. length 200
  181. ChangeIfDiminished(@)
  182. FMT(vowel/aa#)
  183. endphoneme
  184. phoneme u:
  185. vowel starttype #u endtype #u
  186. length 190
  187. FMT(vdiph2/uw)
  188. endphoneme
  189. phoneme aU
  190. vowel starttype #a endtype #o
  191. length 235
  192. FMT(vdiph/aoo)
  193. endphoneme
  194. phoneme oU
  195. vowel starttype #@ endtype #u
  196. length 230
  197. FMT(vdiph/8u)
  198. endphoneme
  199. phoneme aI
  200. vowel starttype #a endtype #i
  201. length 250
  202. IF nextPh(#a) OR nextPh(#o) THEN
  203. AppendPhoneme(;)
  204. ENDIF
  205. FMT(vdiph/aae)
  206. endphoneme
  207. phoneme eI
  208. vowel starttype #e endtype #i
  209. length 230
  210. FMT(vdiph2/ei_4)
  211. endphoneme
  212. phoneme OI
  213. vowel starttype #o endtype #i
  214. length 285
  215. FMT(vdiph/ooi_4)
  216. endphoneme
  217. phoneme e@
  218. vowel starttype #e endtype #@
  219. length 280
  220. ipa ɛɹ
  221. IF nextPhW(r) THEN
  222. ipa ɛ
  223. ENDIF
  224. IfNextVowelAppend(r)
  225. FMT(vwl_en_us/er)
  226. endphoneme
  227. phoneme i@
  228. vowel starttype #i endtype #@
  229. length 250
  230. FMT(vdiph2/ii@) // don't append [r] before a vowel
  231. endphoneme
  232. phoneme i@3
  233. vowel starttype #i endtype #@
  234. length 280
  235. ipa ɪɹ
  236. IF nextPhW(r) THEN
  237. ipa ɪ
  238. ENDIF
  239. IfNextVowelAppend(r)
  240. FMT(vwl_en_us/ir)
  241. endphoneme
  242. phoneme U@
  243. vowel starttype #@ endtype #@
  244. length 250
  245. ipa ʊɹ
  246. IF nextPhW(r-) THEN
  247. ipa ʊ
  248. ENDIF
  249. IfNextVowelAppend(r-)
  250. FMT(vwl_en_us/ur)
  251. endphoneme
  252. phoneme aI@
  253. vowel starttype #a endtype #@
  254. length 300
  255. ipa aɪə
  256. IfNextVowelAppend(r-)
  257. FMT(vwl_en_us/ai@)
  258. endphoneme
  259. phoneme aI3
  260. vowel starttype #a endtype #@
  261. length 300
  262. ipa aɪɚ
  263. IfNextVowelAppend(r-)
  264. FMT(vwl_en_us/ai3)
  265. endphoneme
  266. phoneme aU@
  267. vowel starttype #a endtype #@
  268. length 300
  269. ipa aɪʊɹ
  270. IF nextPhW(r) THEN
  271. ipa aɪʊ
  272. ENDIF
  273. IfNextVowelAppend(r)
  274. FMT(vwl_en_us/aU@)
  275. endphoneme
  276. //==============
  277. // Consonants
  278. //==============
  279. phoneme r/ // used for [r] when not preceding a vowel
  280. liquid
  281. lengthmod 2 //
  282. // formants NULL
  283. endphoneme
  284. phoneme t
  285. vls alv stop
  286. voicingswitch d
  287. lengthmod 2
  288. IF prevPhW(isVowel) OR prevPhW(n) THEN
  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