ir1 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. // eSpeak Phonemes to Mbrola
  2. // Persian (Farsi) & English
  3. // mb-ir1 Phonemes Translation
  4. // Seyed Mahmood Taghavi Shahri
  5. // mahmood.taghavi at Gmail.com
  6. // http://www.amardan.ir
  7. // License: GPL
  8. // Release: 2013-11-07
  9. // Limitation: Some English vowels can not be present or play with only two "ir1" diphones!
  10. // I need ability of combine up to four Mbrola diphones for good eSpeak to Mbrola translation.
  11. // Most English vowels can be present with two or three "ir1" diphones. But for playing them,
  12. // Mbrola "ir1" don't allow consequence of Persian vowels and also begin with a Persian vowel.
  13. // So in most case I forced to add "?" Persian consonant to do work with "ir1" specifications.
  14. // Persian vowels
  15. 2 A _ 0 ? a:
  16. 6 A i 0 ? a:
  17. 2 A i 0 y a: // Persian: ریاضی
  18. 2 A VWL 0 ? a:
  19. 2 A ; 0 ? a:
  20. 0 A NULL 0 a:
  21. 2 u _ 0 ? u
  22. 6 u i 0 ? u
  23. 2 u i 0 y u
  24. 2 u VWL 0 ? u
  25. 2 u ; 0 ? u
  26. 0 u NULL 0 u
  27. 2 i _ 0 ? i
  28. 6 i i 0 ? i
  29. 2 i i 0 y i
  30. 2 i 3: 0 i // Before phoneme end with "mb-ir1" consonant.
  31. 2 i @L 0 i // Before phoneme end with "mb-ir1" consonant.
  32. 2 i e@ 0 i // Before phoneme end with "mb-ir1" consonant.
  33. 2 i r- 0 i // Before phoneme end with "mb-ir1" consonant.
  34. 2 i VWL 0 ? i
  35. 2 i ; 0 ? i
  36. 0 i NULL 0 i
  37. 2 a _ 0 ? a
  38. 6 a i 0 ? a
  39. 2 a i 0 y a
  40. 2 a @L 0 a // Before phoneme end with "mb-ir1" consonant.
  41. 2 a VWL 0 ? a
  42. 2 a ; 0 ? a // English: specialty and
  43. 0 a NULL 0 a
  44. 2 e _ 0 ? e
  45. 6 e i 0 ? e
  46. 2 e i 0 y e
  47. 2 e VWL 0 ? e
  48. 2 e ; 0 ? e
  49. 0 e NULL 0 e
  50. 2 o _ 0 ? o
  51. 6 o i 0 ? o
  52. 2 o i 0 y o
  53. 2 o VWL 0 ? o
  54. 2 o ; 0 ? o
  55. 0 o NULL 0 o
  56. // Persian end of words
  57. 0 _ NULL 0 NULL
  58. 2 _ NULL 0 NULL
  59. // Persian & English consonants
  60. 0 ? NULL 0 ?
  61. 0 b NULL 0 b
  62. 0 d NULL 0 d
  63. 0 dZ NULL 0 j:
  64. 0 D NULL 50 z d
  65. 0 f NULL 0 f
  66. 0 h NULL 0 h
  67. 0 j NULL 0 y
  68. 0 l NULL 0 l
  69. 0 m NULL 0 m
  70. 0 n NULL 0 n
  71. 0 N NULL 50 n g:
  72. 0 p NULL 0 p
  73. 0 l/ NULL 0 l
  74. 1 q 1 0 q
  75. 0 q NULL 0 q
  76. 0 r NULL 0 r
  77. 0 R NULL 0 r
  78. 0 s NULL 0 s
  79. 0 S NULL 0 s:
  80. 0 t NULL 0 t
  81. 0 tS NULL 0 c:
  82. 0 T NULL 50 s t
  83. 0 v NULL 0 v
  84. 0 x NULL 0 x
  85. 0 z NULL 0 z
  86. 0 Z NULL 0 z:
  87. 0 g A 0 g
  88. 0 g u 0 g
  89. 0 g o 0 g
  90. 0 g @5 0 g
  91. 0 g A@ 0 g
  92. 0 g 0 0 g
  93. 0 g V 0 g
  94. 0 g u: 0 g
  95. 0 g U 0 g
  96. 0 g U@ 0 g
  97. 0 g O@ 0 g
  98. 0 g o@ 0 g
  99. 0 g OI 0 g
  100. 0 g NULL 0 g:
  101. 0 k A 0 k
  102. 0 k u 0 k
  103. 0 k o 0 k
  104. 0 k @5 0 k
  105. 0 k A@ 0 k
  106. 0 k 0 0 k
  107. 0 k V 0 k
  108. 0 k u: 0 k
  109. 0 k U 0 k
  110. 0 k U@ 0 k
  111. 0 k O@ 0 k
  112. 0 k o@ 0 k
  113. 0 k OI 0 k
  114. 0 k NULL 0 c
  115. // Persian & English others
  116. 0 ; NULL 0 _
  117. 0 g- NULL 0 NULL
  118. 0 @- NULL 0 NULL
  119. // English vowels
  120. 0 w NULL 0 v // English: quite. Arabic: ولَد
  121. 8 a NULL 0 ? a
  122. 8 i NULL 0 ? i
  123. 0 @ NULL 50 ? e
  124. 8 3 NULL 50 ? e
  125. 2 3 i@ 50 e r // Before phoneme end with "mb-ir1" consonant.
  126. 2 3 VWL 50 ? e
  127. 2 3 ; 50 ? e
  128. 0 3 NULL 50 e r
  129. 0 3: NULL 50 ? r
  130. 8 @L NULL 50 ? l
  131. 2 @L VWL 50 ? l
  132. 2 @L ; 50 ? l
  133. 0 @L NULL 50 e l
  134. 0 @2 NULL 50 ? e
  135. 2 @5 g 0 u
  136. 2 @5 k 0 u
  137. 8 @5 NULL 0 ? u
  138. 2 @5 VWL 0 ? u
  139. 2 @5 ; 0 ? u
  140. 0 @5 NULL 0 u
  141. 8 aa NULL 0 ? a
  142. 2 aa @L 0 a // Before phoneme end with "mb-ir1" consonant.
  143. 2 aa VWL 0 ? a
  144. 2 aa ; 0 ? a
  145. 0 aa NULL 0 a
  146. 0 a# NULL 10 ? e
  147. 0 A: NULL 10 ? a:
  148. 2 A@ g 10 a: r
  149. 2 A@ k 10 a: r
  150. 8 A@ NULL 0 ? r
  151. 2 A@ VWL 0 ? r
  152. 2 A@ ; 0 ? r
  153. 0 A@ NULL 10 a: r
  154. 8 E NULL 0 ? e
  155. 2 E @L 0 e // Before phoneme end with "mb-ir1" consonant.
  156. 2 E l/2 0 e // Before phoneme end with "mb-ir1" consonant.
  157. 2 E VWL 0 ? e
  158. 2 E ; 0 ? e
  159. 0 E NULL 0 e
  160. 8 e@ NULL 50 ? r
  161. 2 e@ VWL 50 ? r
  162. 2 e@ ; 50 ? r
  163. 0 e@ NULL 50 e r
  164. 0 I NULL 50 ? i
  165. 8 I2 NULL 0 ? e
  166. 2 I2 3: 0 e // Before phoneme end with "mb-ir1" consonant.
  167. 2 I2 @L 0 e // Before phoneme end with "mb-ir1" consonant.
  168. 2 I2 VWL 0 ? e
  169. 2 I2 ; 0 ? e
  170. 0 I2 NULL 0 e
  171. 8 i: NULL 0 ? i
  172. 2 i: @L 0 i // Before phoneme end with "mb-ir1" consonant.
  173. 2 i: VWL 0 ? i
  174. 2 i: ; 0 ? i
  175. 0 i: NULL 0 i
  176. 0 i@ NULL 50 y r
  177. 2 0 g 0 a:
  178. 2 0 k 0 a:
  179. 8 0 NULL 0 ? a:
  180. 2 0 @L 0 a: // Before phoneme end with "mb-ir1" consonant.
  181. 2 0 VWL 0 ? a:
  182. 2 0 ; 0 ? a:
  183. 0 0 NULL 0 a:
  184. 2 V g 0 a:
  185. 2 V k 0 a:
  186. 8 V NULL 0 ? a:
  187. 2 V 3: 0 a: // Before phoneme end with "mb-ir1" consonant.
  188. 2 V @L 0 a: // Before phoneme end with "mb-ir1" consonant.
  189. 2 V A@ 0 a: // Before phoneme end with "mb-ir1" consonant.
  190. 2 V e@ 0 a: // Before phoneme end with "mb-ir1" consonant.
  191. 2 V VWL 0 ? a:
  192. 2 V ; 0 ? a:
  193. 0 V NULL 0 a:
  194. 2 u: g 0 u
  195. 2 u: k 0 u
  196. 8 u: NULL 0 ? u
  197. 2 u: @L 0 u // Before phoneme end with "mb-ir1" consonant.
  198. 2 u: VWL 0 ? u
  199. 2 u: ; 0 ? u
  200. 0 u: NULL 0 u
  201. 2 U g 0 u
  202. 2 U k 0 u
  203. 8 U NULL 0 ? u
  204. 2 U VWL 0 ? u
  205. 2 U ; 0 ? u
  206. 0 U NULL 0 u
  207. 2 U@ g 90 o r
  208. 2 U@ k 90 o r
  209. 8 U@ NULL 0 ? o
  210. 2 U@ VWL 0 ? o
  211. 2 U@ ; 0 ? o
  212. 0 U@ NULL 90 o r
  213. 0 O: NULL 10 ? a:
  214. 2 O@ g 70 o r
  215. 2 O@ k 70 o r // English: recording
  216. 8 O@ NULL 0 ? o
  217. 2 O@ VWL 10 ? o
  218. 2 O@ ; 10 ? o
  219. 0 O@ NULL 70 o r
  220. 2 o@ g 70 o r
  221. 2 o@ k 70 o r
  222. 8 o@ NULL 0 ? o
  223. 2 o@ VWL 0 ? o
  224. 2 o@ ; 0 ? o
  225. 0 o@ NULL 70 o r
  226. 0 aI NULL 0 ? a:y
  227. 0 eI NULL 0 ? ey
  228. 2 OI g 0 oy
  229. 2 OI k 0 oy
  230. 8 OI NULL 0 ? oy
  231. 2 OI VWL 0 ? oy
  232. 2 OI ; 0 ? oy
  233. 0 OI NULL 0 oy
  234. 0 aU NULL 0 ? ow
  235. 0 oU NULL 0 ? ow
  236. 8 aI@ NULL 0 ? ay
  237. 2 aI@ VWL 0 ? ay
  238. 2 aI@ ; 0 ? ay
  239. 0 aI@ NULL 90 ay ?
  240. 0 aU@ NULL 50 ? o
  241. 0 l/2 NULL 0 l // English: child
  242. 0 r- NULL 0 r // English: are available
  243. 0 i@3 NULL 50 ? r // English: career
  244. 0 I# NULL 50 ? n // English: genuine
  245. 0 VR NULL 50 ? r // English: sir
  246. 0 n^ NULL 90 ? n // English: n
  247. 0 th NULL 50 s t // English: th
  248. 0 ts NULL 50 t s // English: mhz
  249. 0 t# NULL 0 t // English: gettin
  250. 0 n- NULL 50 ? n // English: gettin
  251. 0 O~ NULL 50 ? n // English: frisson
  252. 0 tS; NULL 0 c: // English: ћ
  253. 0 Q NULL 0 g: // English: Miguel
  254. 0 Q" NULL 0 q // English: غ
  255. 0 z. NULL 0 z: // English: ڑ
  256. 0 IR NULL 50 ? r
  257. 0 C NULL 0 c: // German ich.
  258. 0 Y NULL 0 ? o // German ö, French oe.
  259. 0 l^ NULL 50 g: l // Italian gli.