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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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 // 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. // FMT(vwl_en_us/oor)
  98. ENDIF
  99. FMT(vowel/aa_8)
  100. endphoneme
  101. phoneme V
  102. vowel starttype #a endtype #@
  103. length 170
  104. ChangeIfDiminished(@)
  105. FMT(vowel/V_6)
  106. endphoneme
  107. phoneme U
  108. vowel starttype #o endtype #o
  109. length 145
  110. FMT(vowel/8_2)
  111. endphoneme
  112. phoneme A:
  113. vowel starttype #a endtype #a
  114. length 210
  115. IF nextPh(r) THEN
  116. FMT(vwl_en_us/ar)
  117. ENDIF
  118. FMT(vowel/aa_8)
  119. endphoneme
  120. phoneme A@ // Used for [A:] when followed by 'r', becomes [A:]+[r] in American
  121. vowel starttype #a endtype #a
  122. ipa ɑːɹ
  123. IF nextPh(r-) THEN
  124. ipa ɑː
  125. ENDIF
  126. length 260
  127. IfNextVowelAppend(r-)
  128. FMT(vwl_en_us/ar)
  129. endphoneme
  130. phoneme 3:
  131. vowel starttype #@ endtype #@
  132. length 240
  133. IfNextVowelAppend(r-)
  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)
  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(vdiph2/ei_4)
  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@3
  221. vowel starttype #i endtype #@
  222. length 280
  223. ipa ɪɹ
  224. IF nextPhW(r) THEN
  225. ipa ɪ
  226. ENDIF
  227. IfNextVowelAppend(r)
  228. FMT(vwl_en_us/ir)
  229. endphoneme
  230. phoneme U@
  231. vowel starttype #@ endtype #@
  232. length 250
  233. ipa ʊɹ
  234. IF nextPhW(r-) THEN
  235. ipa ʊ
  236. ENDIF
  237. IfNextVowelAppend(r-)
  238. FMT(vwl_en_us/ur)
  239. endphoneme
  240. phoneme aI@
  241. vowel starttype #a endtype #@
  242. length 300
  243. ipa aɪəɹ
  244. IF nextPhW(r-) THEN
  245. ipa aɪə
  246. ENDIF
  247. IfNextVowelAppend(r-)
  248. FMT(vwl_en_us/ai@)
  249. endphoneme
  250. phoneme aU@
  251. vowel starttype #a endtype #@
  252. length 300
  253. ipa aɪʊɹ
  254. IF nextPhW(r) THEN
  255. ipa aɪʊ
  256. ENDIF
  257. IfNextVowelAppend(r)
  258. FMT(vwl_en_us/aU@)
  259. endphoneme
  260. //==============
  261. // Consonants
  262. //==============
  263. phoneme r/ // used for [r] when not preceding a vowel
  264. liquid
  265. lengthmod 2 //
  266. // formants NULL
  267. endphoneme
  268. phoneme t
  269. vls alv stop
  270. voicingswitch d
  271. lengthmod 2
  272. IF prevPh(isVowel) OR prevPh(n) THEN
  273. IF nextPh(isVowel) AND nextPh(isUnstressed) AND thisPh(notWordStart) AND nextPh(notWordStart) THEN
  274. ChangePhoneme(t#)
  275. ENDIF
  276. ENDIF
  277. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  278. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  279. IF nextPh(isPause2) THEN
  280. WAV(ustop/t_)
  281. ELIF nextPh(r) OR nextPh(R) OR nextPh(R2) THEN
  282. WAV(ustop/tr)
  283. ELIF nextPh(@-) THEN
  284. WAV(ustop/t_dnt, 50)
  285. ENDIF
  286. WAV(ustop/t, 90)
  287. endphoneme