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_pt_brazil 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. //====================================================
  2. // Portuguese - based on Base2
  3. //====================================================
  4. phoneme I // epenthetic i
  5. vowel starttype #i endtype #i
  6. unstressed
  7. length 90
  8. FMT(vowel/ii_6)
  9. endphoneme
  10. phoneme e~
  11. vowel starttype #e endtype #e
  12. length 240
  13. FMT(vnasal/e_n)
  14. endphoneme
  15. phoneme i~
  16. vowel starttype #i endtype #i
  17. length 240
  18. IfNextVowelAppend(;)
  19. FMT(vnasal/i_n)
  20. endphoneme
  21. phoneme o~
  22. vowel starttype #o endtype #o
  23. length 240
  24. FMT(vnasal/o_n)
  25. endphoneme
  26. phoneme u~
  27. vowel starttype #u endtype #u
  28. length 180
  29. FMT(vnasal/u_n)
  30. endphoneme
  31. phoneme &~
  32. vowel starttype #@ endtype #@
  33. ipa ɐU+0303
  34. length 180
  35. // ChangeIfNotStressed(&)
  36. FMT(vnasal/a#_n)
  37. endphoneme
  38. phoneme &U~
  39. vowel starttype #@ endtype #u
  40. ipa ɐU+0303ʊU+0303
  41. length 240
  42. FMT(vnasal/a#u_n)
  43. endphoneme
  44. phoneme oI~
  45. vowel starttype #o endtype #i
  46. ipa oU+0303ɪU+0303
  47. length 260
  48. FMT(vnasal/oi_n)
  49. endphoneme
  50. phoneme &
  51. vowel starttype #@ endtype #@
  52. length 180
  53. FMT(vowel/a#_3)
  54. endphoneme
  55. phoneme &/ // Used for final "a" when next word starts with "a"
  56. vowel starttype #@ endtype #@
  57. length 180
  58. IF nextPh(isVowel) THEN
  59. ChangePhoneme(NULL)
  60. ENDIF
  61. FMT(vowel/a#_3)
  62. endphoneme
  63. phoneme A // for "al" in European Portuguese, don't reduce to [&]
  64. vowel starttype #a endtype #a
  65. length 200
  66. FMT(vowel/a_2)
  67. endphoneme
  68. phoneme E
  69. vowel starttype #e endtype #e
  70. length 170
  71. FMT(vowel/ee_3)
  72. endphoneme
  73. phoneme e
  74. vowel starttype #e endtype #e
  75. length 160
  76. FMT(vowel/e)
  77. endphoneme
  78. phoneme y // this is the same as [i] for Brazil
  79. vowel starttype #i endtype #i
  80. length 110
  81. IfNextVowelAppend(;)
  82. FMT(vowel/ii_6)
  83. endphoneme
  84. phoneme i/ // changes to [j] before a vowel
  85. vowel starttype #i endtype #i
  86. length 150
  87. IF nextPh(isVowel) THEN
  88. ChangePhoneme(j)
  89. ENDIF
  90. IfNextVowelAppend(;)
  91. FMT(vowel/ii_6)
  92. endphoneme
  93. phoneme O
  94. vowel starttype #o endtype #o
  95. length 170
  96. FMT(vowel/0)
  97. endphoneme
  98. phoneme u
  99. vowel starttype #u endtype #u
  100. length 160
  101. FMT(vowel/u_bck)
  102. endphoneme
  103. phoneme U
  104. vowel starttype #u endtype #u
  105. length 140
  106. IF thisPh(isWordEnd) AND nextPh(isVowel) THEN
  107. ChangePhoneme(w)
  108. ENDIF
  109. FMT(vowel/uu_bck)
  110. endphoneme
  111. phoneme aI
  112. vowel starttype #a endtype #i
  113. length 230
  114. IfNextVowelAppend(;)
  115. FMT(vdiph/ai)
  116. endphoneme
  117. phoneme eI
  118. vowel starttype #e endtype #i
  119. length 210
  120. IfNextVowelAppend(;)
  121. FMT(vdiph/ei)
  122. endphoneme
  123. phoneme OI
  124. vowel starttype #o endtype #i
  125. length 230
  126. IfNextVowelAppend(;)
  127. FMT(vdiph/0i)
  128. endphoneme
  129. phoneme eU
  130. vowel starttype #e endtype #u
  131. length 230
  132. FMT(vdiph/eu)
  133. endphoneme
  134. phoneme EU
  135. vowel starttype #e endtype #u
  136. length 230
  137. FMT(vdiph/eeu)
  138. endphoneme
  139. phoneme l
  140. import_phoneme en/l // use 'dark' [l] after a vowel, should be [w]
  141. endphoneme
  142. phoneme x // this is [R] from Slovak/Czech
  143. liquid
  144. trill
  145. ipa r
  146. lengthmod 6
  147. Vowelin f1=0 f2=1700 -300 300 f3=-300 80
  148. Vowelout f1=2 f2=1700 -300 300 f3=-300 80 brk
  149. FMT(r3/r_trill) addWav(r3/r_trill.wav, 50)
  150. endphoneme
  151. phoneme r-
  152. import_phoneme en/r-
  153. endphoneme
  154. phoneme s# // This is [s] for Brazi;, [S] for Portugal
  155. CALL base/s
  156. ipa s
  157. endphoneme
  158. phoneme *
  159. vcd alv stop
  160. lengthmod 6
  161. ipa ɾ
  162. Vowelin f1=1 f2=1700 -300 300 f3=0 80
  163. Vowelout f1=2 f2=1700 -300 300 f3=0 80
  164. IF PreVoicing THEN
  165. FMT(d/x_tap)
  166. ENDIF
  167. FMT(d/tap2) addWav(x/d, 40)
  168. endphoneme