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_italian 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. //====================================================
  2. // Italian, last update 5 july 2016 by Chris <[email protected]>
  3. //====================================================
  4. phoneme : // Lengthen previous vowel by "length"
  5. virtual
  6. length 50
  7. endphoneme
  8. phoneme a
  9. vowel starttype #a endtype #a
  10. length 160
  11. ChangeIfNotStressed(a/)
  12. IF thisPh(isWordEnd) AND prevPhW(t) AND thisPh(isStressed) THEN
  13. FMT(vowel/a)
  14. ENDIF
  15. IF nextPhW(o/) OR prevPhW(isVowel) OR prevPhW(j) THEN
  16. FMT(vowel/a)
  17. ENDIF
  18. FMT(vwl_it/a)
  19. endphoneme
  20. phoneme a/
  21. vowel starttype #a endtype #a
  22. length 150
  23. IF prevPhW(l) THEN
  24. FMT(vowel/a_7, 80)
  25. ENDIF
  26. IF thisPh(isWordEnd) THEN
  27. FMT(vowel/a_8, 70)
  28. ENDIF
  29. IF thisPh(isWordStart) THEN
  30. FMT(vwl_it/a, 85)
  31. ENDIF
  32. FMT(vowel/a_8, 80)
  33. endphoneme
  34. phoneme e
  35. vowel starttype #e endtype #e
  36. length 155
  37. ChangeIfNotStressed(e/)
  38. FMT(vowel/e_2)
  39. endphoneme
  40. phoneme e/
  41. vowel starttype #e endtype #e
  42. length 140
  43. IF nextPhW(isNasal) OR nextPhW(isLiquid) THEN
  44. FMT(vowel/e_mid2)
  45. ELIF thisPh(isWordEnd) THEN
  46. FMT(vowel/e, 65)
  47. ENDIF
  48. FMT(vowel/e)
  49. endphoneme
  50. phoneme E
  51. vowel starttype #e endtype #e
  52. length 150
  53. ChangeIfUnstressed(e/)
  54. FMT(vwl_it/e_open)
  55. endphoneme
  56. phoneme i
  57. vowel starttype #i endtype #i
  58. length 155
  59. IfNextVowelAppend(;)
  60. IF thisPh(isWordEnd) AND thisPh(isNotStressed) AND NOT prevPhW(E) THEN
  61. ChangePhoneme(I)
  62. ENDIF
  63. FMT(vwl_it/i)
  64. endphoneme
  65. phoneme i# // Used for 'gia_' where [i] is only spoken if stressed
  66. vowel starttype #i endtype #i
  67. length 145
  68. ChangeIfNotStressed(NULL)
  69. ChangePhoneme(i)
  70. endphoneme
  71. phoneme I
  72. vowel starttype #i endtype #i
  73. length 140
  74. IfNextVowelAppend(;)
  75. FMT(vowel/i_4)
  76. endphoneme
  77. phoneme o
  78. vowel starttype #o endtype #o
  79. length 160
  80. ChangeIfNotStressed(o/)
  81. FMT(vwl_it/o)
  82. endphoneme
  83. phoneme o/
  84. vowel starttype #o endtype #o
  85. length 145
  86. IF nextPhW(isNasal) OR nextPhW(isLiquid) THEN
  87. FMT(vwl_it/o_open, 80)
  88. ENDIF
  89. IF thisPh(isWordEnd) AND NOT prevPhW(a) THEN
  90. FMT(vwl_it/o, 65)
  91. ENDIF
  92. FMT(vowel/o, 90)
  93. endphoneme
  94. phoneme O
  95. vowel starttype #o endtype #o
  96. length 150
  97. ChangeIfUnstressed(o/)
  98. FMT(vwl_it/o_open)
  99. endphoneme
  100. phoneme u
  101. vowel starttype #u endtype #u
  102. length 160
  103. ChangeIfNotStressed(U)
  104. FMT(vwl_it/u)
  105. endphoneme
  106. phoneme U
  107. vowel starttype #u endtype #u
  108. length 140
  109. FMT(vowel/u_bck2)
  110. endphoneme
  111. phoneme aU
  112. vowel starttype #a endtype #u
  113. length 270
  114. FMT(vdiph/au_4)
  115. endphoneme
  116. phoneme aI
  117. vowel starttype #a endtype #i
  118. length 250
  119. FMT(vdiph/ai)
  120. endphoneme
  121. phoneme oI
  122. vowel starttype #o endtype #i
  123. length 230
  124. FMT(vdiph/oi)
  125. endphoneme
  126. // CONSONANTS
  127. //==========
  128. phoneme l
  129. liquid
  130. lengthmod 7
  131. IF nextPh(isNotVowel) THEN
  132. ChangePhoneme(l/)
  133. ENDIF
  134. NextVowelStarts
  135. VowelStart(l/l@)
  136. VowelStart(l/la, -10)
  137. VowelStart(l/le, -15)
  138. VowelStart(l/li, -15)
  139. VowelStart(l/lo, -20)
  140. VowelStart(l/lu, -17)
  141. EndSwitch
  142. IF prevPh(#@) THEN
  143. VowelEnding(l/xl, -50)
  144. ELIF prevPh(isVowel) THEN
  145. VowelEnding(l/xl, -40)
  146. ENDIF
  147. IF prevPh(isPause) THEN
  148. FMT(l/_l)
  149. ENDIF
  150. IF prevPh(t) THEN
  151. FMT(l/tl)
  152. ENDIF
  153. IF prevPh(l/) THEN
  154. FMT(l/l_long)
  155. ENDIF
  156. FMT(l/l)
  157. endphoneme
  158. phoneme l^
  159. import_phoneme base/l^
  160. Length 130
  161. endphoneme
  162. phoneme ts
  163. vls alv afr sibilant
  164. voicingswitch s
  165. lengthmod 2
  166. Vowelin f1=0 f2=1700 -300 300 f3=-100 60 len=60
  167. Vowelout f1=0 f2=1700 -300 250 f3=-100 70 rms=18
  168. IF nextPh(isPause2) THEN
  169. WAV(ustop/ts_)
  170. ENDIF
  171. WAV(ustop/ts)
  172. endphoneme
  173. phoneme ts2
  174. vls alv afr sibilant
  175. voicingswitch dz
  176. lengthmod 9
  177. Vowelin f1=2 f2=1700 -300 300 f3=-200 120 len=10
  178. Vowelout f1=0 f2=1700 -300 250 f3=-100 170 rms=20 brk
  179. IF nextPh(isStressed) THEN
  180. Vowelin f1=0 f2=1700 -300 300 f3=-100 60 len=60
  181. Vowelout f1=0 f2=1700 -300 250 f3=-100 70 rms=14
  182. WAV(ustop/ts_, 80)
  183. ENDIF
  184. WAV(ustop/ts_, 70)
  185. endphoneme
  186. phoneme dz
  187. import_phoneme consonants/dz
  188. voicingswitch z
  189. lengthmod 3
  190. endphoneme
  191. phoneme ss
  192. vls alv frc sibilant
  193. voicingswitch z
  194. lengthmod 6
  195. Vowelin f1=2 f2=1700 -300 300 f3=-100 80
  196. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  197. length 170
  198. WAV(ufric/s, 86)
  199. endphoneme