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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. FMT(vowel/uu_bck)
  107. endphoneme
  108. phoneme aI
  109. vowel starttype #a endtype #i
  110. length 230
  111. IfNextVowelAppend(;)
  112. FMT(vdiph/ai)
  113. endphoneme
  114. phoneme eI
  115. vowel starttype #e endtype #i
  116. length 210
  117. IfNextVowelAppend(;)
  118. FMT(vdiph/ei)
  119. endphoneme
  120. phoneme OI
  121. vowel starttype #o endtype #i
  122. length 230
  123. IfNextVowelAppend(;)
  124. FMT(vdiph/0i)
  125. endphoneme
  126. phoneme eU
  127. vowel starttype #e endtype #u
  128. length 230
  129. FMT(vdiph/eu)
  130. endphoneme
  131. phoneme EU
  132. vowel starttype #e endtype #u
  133. length 230
  134. FMT(vdiph/eeu)
  135. endphoneme
  136. phoneme l
  137. import_phoneme en/l // use 'dark' [l] after a vowel, should be [w]
  138. endphoneme
  139. phoneme x // this is [R] from Slovak/Czech
  140. liquid
  141. trill
  142. ipa r
  143. lengthmod 6
  144. Vowelin f1=0 f2=1700 -300 300 f3=-300 80
  145. Vowelout f1=2 f2=1700 -300 300 f3=-300 80 brk
  146. FMT(r3/r_trill) addWav(r3/r_trill.wav, 50)
  147. endphoneme
  148. phoneme r-
  149. import_phoneme en/r-
  150. endphoneme
  151. phoneme s# // This is [s] for Brazi;, [S] for Portugal
  152. CALL base/s
  153. ipa s
  154. endphoneme
  155. phoneme *
  156. vcd alv stop
  157. lengthmod 6
  158. ipa ɾ
  159. Vowelin f1=1 f2=1700 -300 300 f3=0 80
  160. Vowelout f1=2 f2=1700 -300 300 f3=0 80
  161. IF PreVoicing THEN
  162. FMT(d/x_tap)
  163. ENDIF
  164. FMT(d/tap2) addWav(x/d, 40)
  165. endphoneme