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_swedish 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. //=========================================================
  2. // Swedish
  3. //=========================================================
  4. // Vowels
  5. //=======
  6. phoneme i:
  7. vowel starttype #i endtype #i
  8. length 180
  9. IfNextVowelAppend(;)
  10. IF prevPh(w) THEN
  11. VowelStart(w/wi2)
  12. ENDIF
  13. FMT(vowel/i_2)
  14. endphoneme
  15. phoneme I
  16. vowel starttype #i endtype #i
  17. length 130
  18. IfNextVowelAppend(;)
  19. FMT(vowel/ii_3)
  20. endphoneme
  21. phoneme e:
  22. vowel starttype #e endtype #e
  23. length 210
  24. FMT(vowel/e_2)
  25. endphoneme
  26. phoneme E
  27. vowel starttype #e endtype #e
  28. length 140
  29. ChangeIfUnstressed(E-)
  30. FMT(vowel/ee)
  31. endphoneme
  32. phoneme E:
  33. vowel starttype #e endtype #@
  34. length 220
  35. FMT(vowel/ee_1)
  36. endphoneme
  37. phoneme E3
  38. vowel starttype #e endtype #e
  39. length 140
  40. ChangeIfDiminished(@)
  41. FMT(vowel/ee_6)
  42. endphoneme
  43. phoneme E-
  44. vowel starttype #@ endtype #@
  45. unstressed
  46. length 140
  47. FMT(vowel/ee#_2)
  48. endphoneme
  49. phoneme y:
  50. vowel starttype #u endtype #u
  51. length 220
  52. FMT(vowel/y_5)
  53. endphoneme
  54. phoneme y
  55. vowel starttype #u endtype #u
  56. length 140
  57. FMT(vowel/yy_3)
  58. endphoneme
  59. phoneme u-
  60. vowel starttype #u endtype #u
  61. length 200
  62. FMT(vowel/u#_2)
  63. endphoneme
  64. phoneme Y:
  65. vowel starttype #@ endtype #@
  66. length 220
  67. FMT(vowel/y#_2)
  68. endphoneme
  69. phoneme W
  70. vowel starttype #@ endtype #@
  71. length 140
  72. FMT(vowel/oe_4)
  73. endphoneme
  74. phoneme 8
  75. vowel starttype #u endtype #u
  76. length 140
  77. FMT(vowel/8_2)
  78. endphoneme
  79. phoneme a
  80. vowel starttype #a endtype #a
  81. length 140
  82. IF thisPh(isNotStressed) AND thisPh(isWordEnd) THEN
  83. FMT(vowel/a#_2)
  84. ENDIF
  85. FMT(vowel/a_5)
  86. endphoneme
  87. phoneme &
  88. vowel starttype #a endtype #a
  89. length 140
  90. FMT(vowel/&)
  91. endphoneme
  92. phoneme A:
  93. vowel starttype #a endtype #a
  94. length 250
  95. FMT(vowel/aa_4)
  96. endphoneme
  97. phoneme O
  98. vowel starttype #o endtype #o
  99. length 140
  100. FMT(vowel/oo)
  101. endphoneme
  102. phoneme o:
  103. vowel starttype #o endtype #o
  104. length 210
  105. FMT(vowel/o)
  106. endphoneme
  107. phoneme U
  108. vowel starttype #u endtype #u
  109. length 140
  110. FMT(vowel/uu_4)
  111. endphoneme
  112. phoneme u:
  113. vowel starttype #u endtype #u
  114. length 210
  115. FMT(vowel/u_bck)
  116. endphoneme
  117. //===================================================
  118. // CONSONANTS
  119. //===========
  120. phoneme sx // Swedish "sj" sound
  121. vls vel frc
  122. lengthmod 3
  123. Vowelin f1=0 f2=2300 300 400 f3=200 100
  124. Vowelout f1=0 f2=2300 300 400 f3=200 100 rms=20
  125. WAV(ufric/sx_sv, 60)
  126. endphoneme