File: ph_swedish

package info (click to toggle)
espeakedit 1.48.03-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,208 kB
  • sloc: cpp: 41,098; ansic: 191; makefile: 40
file content (162 lines) | stat: -rwxr-xr-x 2,403 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162


//=========================================================
// Swedish
//=========================================================


// Vowels
//=======

phoneme i:
  vowel starttype #i endtype #i
  length 180
  IfNextVowelAppend(;)
  IF prevPh(w) THEN
    VowelStart(w/wi2)
  ENDIF
  FMT(vowel/i_2)
endphoneme

phoneme I
  vowel starttype #i endtype #i
  length 130
  IfNextVowelAppend(;)
  FMT(vowel/ii_3)
endphoneme

phoneme e:
  vowel starttype #e endtype #e
  length 210
  FMT(vowel/e_2)
endphoneme

phoneme E
  vowel starttype #e endtype #e
  length 140
  ChangeIfUnstressed(E-)
  FMT(vowel/ee)
endphoneme

phoneme E:
  vowel  starttype #e  endtype #@
  length 220
  FMT(vowel/ee_1)
endphoneme

phoneme E3
  vowel starttype #e endtype #e
  length 140
  ChangeIfDiminished(@)
  FMT(vowel/ee_6)
endphoneme

phoneme E-
  vowel starttype #@ endtype #@
  ipa ə
  unstressed
  length 140
  FMT(vowel/ee#_2)
endphoneme



phoneme y:
  vowel starttype #u endtype #u
  length 220
  FMT(vowel/y_5)
endphoneme

phoneme y
  vowel starttype #u endtype #u
  length 140
  FMT(vowel/yy_3)
endphoneme

phoneme u-
  vowel starttype #u endtype #u
  ipa ʉ
  length 200
  FMT(vowel/u#_2)
endphoneme

phoneme Y:
  vowel starttype #@ endtype #@
  length 220
  FMT(vowel/y#_2)
endphoneme

phoneme W
  vowel starttype #@ endtype #@
  length 140
  FMT(vowel/oe_4)
endphoneme

phoneme 8
  vowel starttype #u endtype #u
  length 140
  FMT(vowel/8_2)
endphoneme



phoneme a
  vowel starttype #a endtype #a
  length 140
  IF thisPh(isNotStressed) AND thisPh(isWordEnd) THEN
    FMT(vowel/a#_2)
  ENDIF
  FMT(vowel/a_5)
endphoneme

phoneme &
  vowel starttype #a endtype #a
  length 140
  FMT(vowel/&)
endphoneme

phoneme A:
  vowel starttype #a endtype #a
  length 250
  FMT(vowel/aa_4)
endphoneme

phoneme O
  vowel starttype #o endtype #o
  length 140
  FMT(vowel/oo)
endphoneme

phoneme o:
  vowel starttype #o endtype #o
  length 210
  FMT(vowel/o)
endphoneme

phoneme U
  vowel starttype #u endtype #u
  length 140
  FMT(vowel/uu_4)
endphoneme

phoneme u:
  vowel starttype #u endtype #u
  length 210
  FMT(vowel/u_bck)
endphoneme


//===================================================

// CONSONANTS
//===========


phoneme sx        // Swedish "sj" sound
  vls vel frc
  lengthmod 3
  Vowelin f1=0  f2=2300 300 400  f3=200 100
  Vowelout f1=0 f2=2300 300 400  f3=200 100  rms=20
  WAV(ufric/sx_sv, 60)
endphoneme