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

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