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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. //*******************************************************************
  2. // VOWELS
  3. //*******************************************************************
  4. phoneme @ // Schwa
  5. vowel starttype #@ endtype #@
  6. unstressed
  7. length 140
  8. IfNextVowelAppend(r-)
  9. FMT(vowel/@_3)
  10. endphoneme
  11. phoneme 3 // Schwa, used for rhotic schwa in American
  12. vowel starttype #@ endtype #@
  13. unstressed
  14. length 140
  15. IF nextPh(isVowel) THEN
  16. ChangePhoneme(@)
  17. ENDIF
  18. IfNextVowelAppend(r-)
  19. IF nextPh(isPause) THEN
  20. FMT(vowelr/V3_r)
  21. ENDIF
  22. FMT(vowel/V)
  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/@_3)
  32. endphoneme
  33. phoneme @5 // Schwa, changes to U before a vowel
  34. vowel starttype #@ endtype #@
  35. unstressed
  36. length 140
  37. IF nextPh(isVowel) OR nextPh(isPause) THEN
  38. ChangePhoneme(U)
  39. ENDIF
  40. FMT(vowel/@_3)
  41. endphoneme
  42. phoneme a
  43. vowel starttype #a endtype #a
  44. length 200
  45. ChangeIfDiminished(a#)
  46. ChangeIfNotStressed(a/)
  47. FMT(vowel/a_3)
  48. endphoneme
  49. phoneme a/
  50. vowel starttype #a endtype #a
  51. length 160
  52. ChangeIfDiminished(a#)
  53. FMT(vowel/a_3)
  54. endphoneme
  55. phoneme a#
  56. vowel starttype #@ endtype #@
  57. ipa ɐ
  58. unstressed
  59. length 140
  60. IfNextVowelAppend(r-)
  61. FMT(vowel/a#)
  62. endphoneme
  63. phoneme aa // 'bath' etc.
  64. vowel starttype #a endtype #a
  65. ipa a:
  66. length 220
  67. IfNextVowelAppend(r-)
  68. FMT(vowel/a_3)
  69. endphoneme
  70. phoneme E
  71. vowel starttype #e endtype #e
  72. length 170
  73. ChangeIfDiminished(I2)
  74. FMT(vowel/e_e)
  75. endphoneme
  76. phoneme I
  77. vowel starttype #@ endtype #@
  78. length 110
  79. IF nextPh(l/2) THEN
  80. VowelEnding(l/L2_@L, -30)
  81. FMT(vowel/@_3)
  82. ENDIF
  83. FMT(vowel/e#)
  84. endphoneme
  85. phoneme I2
  86. vowel starttype #@ endtype #@
  87. unstressed
  88. length 110
  89. CALL I
  90. endphoneme
  91. phoneme I#
  92. vowel starttype #@ endtype #@
  93. ChangePhoneme(I2)
  94. endphoneme
  95. phoneme i // optional variant of [I] for end of words
  96. vowel starttype #i endtype #e
  97. ipa e
  98. length 150
  99. IfNextVowelAppend(;)
  100. FMT(vowel/e_5)
  101. endphoneme
  102. phoneme 0
  103. vowel starttype #o endtype #o
  104. length 200
  105. ChangeIfDiminished(@)
  106. FMT(vowel/oo_2)
  107. endphoneme
  108. phoneme V
  109. vowel starttype #a endtype #@
  110. length 140
  111. ChangeIfDiminished(@)
  112. FMT(vowel/V_4)
  113. endphoneme
  114. phoneme U
  115. vowel starttype #u endtype #u
  116. ipa ʉ
  117. length 140
  118. FMT(vowel/u#_4)
  119. endphoneme
  120. phoneme A:
  121. vowel starttype #a endtype #a
  122. length 220
  123. ipa a:
  124. IfNextVowelAppend(r-)
  125. IF nextPh(r) THEN
  126. Length 250
  127. FMT(vowelr/aa_r)
  128. ENDIF
  129. FMT(vowel/a_3)
  130. endphoneme
  131. phoneme A@ // Used for [A:] when followed by 'r', becomes [A:]+[r] in American
  132. vowel starttype #a endtype #@
  133. length 250
  134. ipa aː
  135. IF NOT nextPhW(r) THEN
  136. AppendPhoneme(r)
  137. ENDIF
  138. FMT(vowelr/aa_r)
  139. endphoneme
  140. phoneme 3:
  141. vowel starttype #e endtype #@
  142. length 230
  143. ChangeIfNotStressed(VR) // also need "replace 02 3: VR" in voice file
  144. ipa e
  145. FMT(vowelr/e_r)
  146. endphoneme
  147. phoneme i:
  148. vowel starttype #i endtype #i
  149. length 130
  150. IfNextVowelAppend(;)
  151. IF prevPh(w) THEN
  152. VowelStart(w/wi2)
  153. ENDIF
  154. IF nextPh(isVFricative) OR nextPh(isPause) THEN
  155. Length 180
  156. ENDIF
  157. FMT(vowel/i_5)
  158. endphoneme
  159. phoneme O:
  160. vowel starttype #o endtype #o
  161. length 200
  162. ChangeIfDiminished(@)
  163. IF nextPh(r) THEN
  164. FMT(vwl_en_us/or)
  165. ENDIF
  166. FMT(vowel/oo)
  167. endphoneme
  168. phoneme O@
  169. vowel starttype #o endtype #@
  170. length 230
  171. ipa ɔ
  172. IF NOT nextPhW(r) THEN
  173. AppendPhoneme(r)
  174. ENDIF
  175. FMT(vowelr/oo_r)
  176. endphoneme
  177. phoneme o@
  178. vowel starttype #o endtype #@
  179. length 230
  180. ipa o
  181. IF NOT nextPhW(r) THEN
  182. AppendPhoneme(r)
  183. ENDIF
  184. FMT(vowelr/oo_r)
  185. endphoneme
  186. phoneme O
  187. vowel starttype #o endtype #o
  188. length 150
  189. ChangeIfDiminished(@)
  190. FMT(vowel/0_3)
  191. endphoneme
  192. phoneme u:
  193. vowel starttype #u endtype #u
  194. ipa ʉː
  195. length 160
  196. IF nextPh(isVFricative) THEN
  197. Length 200
  198. ENDIF
  199. IF nextPh(isPause) THEN
  200. Length 200
  201. FMT(vowel/u#_4)
  202. ENDIF
  203. FMT(vowel/u#)
  204. endphoneme
  205. phoneme aU
  206. vowel starttype #a endtype #u
  207. ipa ʌʉ
  208. length 200
  209. FMT(vdiph/au#)
  210. endphoneme
  211. phoneme oU
  212. vowel starttype #o endtype #u
  213. ipa oː
  214. length 190
  215. FMT(vowel/o_3)
  216. endphoneme
  217. phoneme aI
  218. vowel starttype #a endtype #i
  219. length 190
  220. IF nextPh(isVowel) OR nextPh(isVFricative) THEN
  221. ChangePhoneme(aI2)
  222. ENDIF
  223. IF nextPh(l/2) THEN
  224. // before l/2 vwl_en/aI@_2+vwl_en/@L_2
  225. FMT(vwl_en/aI@_2)
  226. ENDIF
  227. // FMT(vdiph/&i_2
  228. FMT(vdiph/ai_7)
  229. endphoneme
  230. phoneme aI2
  231. vowel starttype #a endtype #i
  232. length 240
  233. FMT(vdiph/ai_7)
  234. endphoneme
  235. phoneme eI
  236. vowel starttype #e endtype #i
  237. ipa eː
  238. length 190
  239. FMT(vowel/e_2)
  240. endphoneme
  241. phoneme OI
  242. vowel starttype #o endtype #i
  243. length 210
  244. FMT(vdiph/0i_2)
  245. endphoneme
  246. phoneme e@
  247. vowel starttype #e endtype #@
  248. length 220
  249. ipa e
  250. IF NOT nextPhW(r) THEN
  251. AppendPhoneme(r)
  252. ENDIF
  253. FMT(vdiph2/e@)
  254. endphoneme
  255. phoneme i@3
  256. vowel starttype #i endtype #@
  257. ipa ɪ
  258. length 240
  259. IF NOT nextPhW(r) THEN
  260. AppendPhoneme(r)
  261. ENDIF
  262. FMT(vowelr/i_r)
  263. endphoneme
  264. phoneme U@
  265. vowel starttype #u endtype #@
  266. ipa ʉɹ
  267. IF nextPh(r-) THEN
  268. ipa ʉ
  269. ENDIF
  270. length 240
  271. IfNextVowelAppend(r-)
  272. FMT(vdiph2/u#@)
  273. endphoneme
  274. phoneme aU@
  275. vowel starttype #a endtype #@
  276. length 270
  277. IfNextVowelAppend(r-)
  278. FMT(vwl_en/aU@)
  279. endphoneme
  280. phoneme aI@
  281. vowel starttype #a endtype #@
  282. length 270
  283. IfNextVowelAppend(r-)
  284. FMT(vwl_en/aI@_2)
  285. endphoneme
  286. phoneme aI3
  287. vowel starttype #a endtype #@
  288. length 280
  289. ChangePhoneme(aI@)
  290. endphoneme
  291. phoneme @L
  292. vowel starttype #@ endtype l
  293. ipa əl
  294. unstressed
  295. length 160
  296. CALL vowelstart_l
  297. FMT(vwl_en/@L_2)
  298. endphoneme
  299. //==============
  300. // Consonants
  301. //==============
  302. phoneme r/ // used for [r] when not preceding a vowel
  303. liquid
  304. lengthmod 2 //
  305. FMT(NULL)
  306. endphoneme
  307. phoneme r
  308. liquid rhotic
  309. lengthmod 7
  310. trill
  311. IF nextPh(isNotVowel) THEN
  312. ChangePhoneme(r/)
  313. ENDIF
  314. CALL base/r
  315. ipa r
  316. endphoneme