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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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. ChangePhoneme(@)
  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. ChangePhoneme(@)
  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 02 // becomes V in en-us
  109. vowel starttype #o endtype #o
  110. length 140
  111. ChangePhoneme(V)
  112. endphoneme
  113. phoneme V
  114. vowel starttype #a endtype #@
  115. length 140
  116. ChangeIfDiminished(@)
  117. FMT(vowel/V_4)
  118. endphoneme
  119. phoneme U
  120. vowel starttype #u endtype #u
  121. ipa ʉ
  122. length 140
  123. FMT(vowel/u#_4)
  124. endphoneme
  125. phoneme A:
  126. vowel starttype #a endtype #a
  127. length 220
  128. ipa a:
  129. IfNextVowelAppend(r-)
  130. IF nextPh(r) THEN
  131. Length 250
  132. FMT(vowelr/aa_r)
  133. ENDIF
  134. FMT(vowel/a_3)
  135. endphoneme
  136. phoneme A@ // Used for [A:] when followed by 'r', becomes [A:]+[r] in American
  137. vowel starttype #a endtype #@
  138. length 250
  139. ipa aː
  140. IF NOT nextPhW(r) THEN
  141. AppendPhoneme(r)
  142. ENDIF
  143. FMT(vowelr/aa_r)
  144. endphoneme
  145. phoneme 3:
  146. vowel starttype #e endtype #@
  147. length 230
  148. ChangeIfNotStressed(VR) // also need "replace 02 3: VR" in voice file
  149. ipa e
  150. FMT(vowelr/e_r)
  151. endphoneme
  152. phoneme i:
  153. vowel starttype #i endtype #i
  154. length 130
  155. IfNextVowelAppend(;)
  156. IF prevPh(w) THEN
  157. VowelStart(w/wi2)
  158. ENDIF
  159. IF nextPh(isVFricative) OR nextPh(isPause) THEN
  160. Length 180
  161. ENDIF
  162. FMT(vowel/i_5)
  163. endphoneme
  164. phoneme O:
  165. vowel starttype #o endtype #o
  166. length 200
  167. ChangeIfDiminished(@)
  168. IF nextPh(r) THEN
  169. FMT(vwl_en_us/or)
  170. ENDIF
  171. FMT(vowel/oo)
  172. endphoneme
  173. phoneme O@
  174. vowel starttype #o endtype #@
  175. length 230
  176. ipa ɔ
  177. IF NOT nextPhW(r) THEN
  178. AppendPhoneme(r)
  179. ENDIF
  180. FMT(vowelr/oo_r)
  181. endphoneme
  182. phoneme o@
  183. vowel starttype #o endtype #@
  184. length 230
  185. ipa o
  186. IF NOT nextPhW(r) THEN
  187. AppendPhoneme(r)
  188. ENDIF
  189. FMT(vowelr/oo_r)
  190. endphoneme
  191. phoneme O
  192. vowel starttype #o endtype #o
  193. length 150
  194. ChangeIfDiminished(@)
  195. FMT(vowel/0_3)
  196. endphoneme
  197. phoneme u:
  198. vowel starttype #u endtype #u
  199. ipa ʉː
  200. length 160
  201. IF nextPh(isVFricative) THEN
  202. Length 200
  203. ENDIF
  204. IF nextPh(isPause) THEN
  205. Length 200
  206. FMT(vowel/u#_4)
  207. ENDIF
  208. FMT(vowel/u#)
  209. endphoneme
  210. phoneme aU
  211. vowel starttype #a endtype #u
  212. ipa ʌʉ
  213. length 200
  214. FMT(vdiph/au#)
  215. endphoneme
  216. phoneme oU
  217. vowel starttype #o endtype #u
  218. ipa oː
  219. length 190
  220. FMT(vowel/o_3)
  221. endphoneme
  222. phoneme aI
  223. vowel starttype #a endtype #i
  224. length 190
  225. IF nextPh(isVowel) OR nextPh(isVFricative) THEN
  226. ChangePhoneme(aI2)
  227. ENDIF
  228. IF nextPh(l/2) THEN
  229. // before l/2 vwl_en/aI@_2+vwl_en/@L_2
  230. FMT(vwl_en/aI@_2)
  231. ENDIF
  232. // FMT(vdiph/&i_2
  233. FMT(vdiph/ai_7)
  234. endphoneme
  235. phoneme aI2
  236. vowel starttype #a endtype #i
  237. length 240
  238. FMT(vdiph/ai_7)
  239. endphoneme
  240. phoneme eI
  241. vowel starttype #e endtype #i
  242. ipa eː
  243. length 190
  244. FMT(vowel/e_2)
  245. endphoneme
  246. phoneme OI
  247. vowel starttype #o endtype #i
  248. length 210
  249. FMT(vdiph/0i_2)
  250. endphoneme
  251. phoneme e@
  252. vowel starttype #e endtype #@
  253. length 220
  254. ipa e
  255. IF NOT nextPhW(r) THEN
  256. AppendPhoneme(r)
  257. ENDIF
  258. FMT(vdiph2/e@)
  259. endphoneme
  260. phoneme i@3
  261. vowel starttype #i endtype #@
  262. ipa ɪ
  263. length 240
  264. IF NOT nextPhW(r) THEN
  265. AppendPhoneme(r)
  266. ENDIF
  267. FMT(vowelr/i_r)
  268. endphoneme
  269. phoneme U@
  270. vowel starttype #u endtype #@
  271. ipa ʉɹ
  272. IF nextPh(r-) THEN
  273. ipa ʉ
  274. ENDIF
  275. length 240
  276. IfNextVowelAppend(r-)
  277. FMT(vdiph2/u#@)
  278. endphoneme
  279. phoneme aU@
  280. vowel starttype #a endtype #@
  281. length 270
  282. IfNextVowelAppend(r-)
  283. FMT(vwl_en/aU@)
  284. endphoneme
  285. phoneme aI@
  286. vowel starttype #a endtype #@
  287. length 270
  288. IfNextVowelAppend(r-)
  289. FMT(vwl_en/aI@_2)
  290. endphoneme
  291. phoneme aI3
  292. vowel starttype #a endtype #@
  293. length 280
  294. ChangePhoneme(aI@)
  295. endphoneme
  296. phoneme @L
  297. vowel starttype #@ endtype l
  298. ipa əl
  299. unstressed
  300. length 160
  301. CALL vowelstart_l
  302. FMT(vwl_en/@L_2)
  303. endphoneme
  304. //==============
  305. // Consonants
  306. //==============
  307. phoneme r/ // used for [r] when not preceding a vowel
  308. liquid
  309. lengthmod 2 //
  310. FMT(NULL)
  311. endphoneme
  312. phoneme r
  313. liquid rhotic
  314. lengthmod 7
  315. trill
  316. IF nextPh(isNotVowel) THEN
  317. ChangePhoneme(r/)
  318. ENDIF
  319. CALL base/r
  320. ipa r
  321. endphoneme