[1.43.63]

Phoneme definitions.  Add "equivalents" table to translate phonemes from a foreign language (eg. English) into the equivalant phonemes of this language. This is used when *_rules and *_list files indicate that a word uses pronunciation rules from a different language.

Unpronouncable words can be recognised by rules in *_rule files.  This feature is now used for en, de, es.

Lang=ta, hi.  Letter-names for combining vowel characters are distinguished from stand-alone vowel characters by a preceding beep.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@251 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2010-08-02 09:09:25 +00:00
parent ebf0535e6d
commit 4423576af2
58 changed files with 1641 additions and 728 deletions
+39 -27
View File
@@ -1,4 +1,4 @@
64 phoneme tables
65 phoneme tables
new total
base 107 107
consonants 9 115
@@ -17,17 +17,17 @@ consonants 9 115
jbo 2 114
nci 3 123
fi 40 133
fr 55 137
fr-ca 11 137
hi 58 149
ta 20 151
fr 58 140
fr-ca 11 140
hi 59 150
ta 21 153
hu 24 121
lv 29 125
nl 24 125
pl 20 118
sk 28 133
cs 6 133
hr 26 138
hr 25 138
mk 3 139
sr 14 138
it 18 126
@@ -55,15 +55,16 @@ consonants 9 115
hy 23 117
da 24 120
rw 15 130
ml 13 150
ne 18 156
pa 14 150
ml 13 151
ne 18 157
pa 14 151
prs 8 111
sl 7 133
gd 6 107
bg 10 119
nso 8 107
ht 11 137
ht 11 140
az 10 127
Data file Used by
b/b [b] base
@@ -341,8 +342,8 @@ l/l_ [l/] base
[l/] fr
l/l_@ [l/3] base
[l/] fr
l/l@ [l#] base
[€¦] base
l/l@ [h&w] base
[l#] base
[l] fr
[l/2] fr
l/L1_aL [l/] base
@@ -367,14 +368,14 @@ l/L2_oL [l/2] base
l/L2_uL [l/2] base
l/l_3 [l/] de
l/l_4 [ll] sq
l/la [l#] base
[€¦] base
l/la [h&w] base
[l#] base
[l] fr
[l/2] fr
l/l_a [l/3] base
[l/] fr
l/le [l#] base
[€¦] base
l/le [h&w] base
[l#] base
[l] fr
[l/2] fr
l/l_e [l/3] base
@@ -383,8 +384,8 @@ l/L_eL_af [&] af
[&:] af
l/l_front [L] sq
l/l_front_ [l/4] sq
l/li [l#] base
[€¦] base
l/li [h&w] base
[l#] base
[l] fr
[l/2] fr
[l] zh
@@ -395,15 +396,15 @@ ll/ll [L] bg
ll/_ll [L] bg
l/l_long [l] base
[l] fr
l/lo [l#] base
[€¦] base
l/lo [h&w] base
[l#] base
[l] fr
[l/2] fr
l/l_o [l/3] base
[l/] fr
l^/l_rfx [l.] base
l/lu [l#] base
[€¦] base
l/lu [h&w] base
[l#] base
[l] fr
[l/2] fr
l/l_u [l/3] base
@@ -731,6 +732,7 @@ ustop/p_asp [ph] consonants
[bh] hi
[ph] zh
[p#] hy
ustop/percus02 [#X2] hi
ustop/percus10 [#X1] base
ustop/pl [p] base
[p-] consonants
@@ -834,6 +836,7 @@ vdiph/0i [OI] pt
vdiph/0i_2 [OI] en-sc
[OI] en-wi
[AI] no
vdiph2/8@ [U@] en
vdiph2/e@ [3:] en-sc
[e@] en-sc
[e@] en-wi
@@ -1047,8 +1050,7 @@ vdiph/@u [u:] en-wm
[@U] vi
[@:U] vi
vdiph/@u_2 [oU] en-rp
vdiph/@u_3 [o3] fr
[@U] ro
vdiph/@u_3 [@U] ro
vdiph/@u_en [oU] en
[@U] id
vdiph/ui [uI] base2
@@ -1202,6 +1204,7 @@ vowel/& [a] en-rp
[&:] lv
[&] sv
[&#] da
[&] az
vowel/0 [0] en
[O] hi
[O] pt
@@ -1238,6 +1241,7 @@ vowel/@_4 [@] en-us
[@] no
vowel/@_6 [@] en
[W] fr
[W2] fr
vowel/8 [o-] zh
vowel/8_2 [U] en-us
[8] sv
@@ -1343,6 +1347,7 @@ vowel/aa [A] fr-ca
[A:] no
[aa] zhy
[a] hy
[a] az
vowel/aa# [O] en-us
[0] en-wi
[a2] fi
@@ -1422,7 +1427,6 @@ vowel/e_5 [i] en-sc
vowel/e_6 [e] ht
vowel/e_8 [E:] de
[e] fr
vowel/e_9 [E2] fr
vowel/ee [E] en-n
[E] sv
vowel/e_e [E] en-sc
@@ -1497,6 +1501,7 @@ vowel/e_mid2 [E] af
[E] da
[e] bg
[e] nso
[e] az
vowel/@_fnt [@] en-wi
[@2] en-wi
[@2] hr
@@ -1535,7 +1540,6 @@ vowel/i_2 [i2] de
[i:] la
[i:] sv
vowel/i_3 [i] af
[I] fr
[i:] sk
vowel/i_4 [i] fi
[i] hu
@@ -1605,6 +1609,7 @@ vowel/ii_4 [I2] en
vowel/ii_5 [I] la
[i] zh
[i] bg
[i] az
vowel/ii_6 [I] en-wm
[I] en-wi
[I2] en-wi
@@ -1683,10 +1688,12 @@ vowel/oe [W] af
vowel/oe_2 [W] no
vowel/oe_4 [W] sv
vowel/o_mid [U@] en-rp
[O] fr
[o] hu
[o] tr
[o] ne
[o] bg
[o] az
vowel/o_mid2 [O] fr
[O] ht
vowel/oo [o] base
@@ -1750,7 +1757,6 @@ vowelr/o_r [o@] en-sc
vowelr/r-voc [r-] base
[r-] sk
[r:] sk
[r-] hr
vowelr/V3_r [VR] en
[3] en-sc
[@r] zh
@@ -1784,15 +1790,18 @@ vowel/u#_4 [U] en-sc
[u:] en-sc
vowel/u_5 [u] sw
[u] nso
[u] az
vowel/u#_5 [y] vi
vowel/u_6 [u:] en-rp
[u] ta
[u2] ta
[u:] ta
[U] pt-pt
[u] pt-pt
[u] ku
vowel/u_7 [u] vi
vowel/u#_7 [@] tr
[@] az
vowel/u_bck [u] base2
[U] cy
[u] fi
@@ -1849,6 +1858,7 @@ vowel/V [3] en-sc
[@] bg
vowel/V_2 [V] en
[a] af
[V] fr
[V] ru
[V#] ru
[V] ku
@@ -1873,6 +1883,7 @@ vowel/y [y] base2
[yu] zhy
[y] sq
[y] da
[y] az
vowel/y# [Y] base2
[3:] en-wm
[Y:] de
@@ -1888,6 +1899,7 @@ vowel/y_2 [y:] la
[y] zh
vowel/y#_2 [Y] hu
[Y:] sv
[W] az
vowel/y_3 [y] af
vowel/y#_3 [W] is
[W:] is
+2 -1
View File
@@ -99,7 +99,7 @@ tune c3
prehead 46 57
headenv fall 16
head 4 80 30 -5 -15
headextend 25 63 38 13 0
headextend 0 63 38 13 0
nucleus0 fall-rise 75 40
endtune
@@ -122,3 +122,4 @@ headextend 16 82 50 32 16
nucleus0 fall 92 8
nucleus fall 92 80 76 8
endtune
+6 -1
View File
@@ -25,6 +25,7 @@ endphoneme
phoneme a // short A
vowel starttype #a endtype #a
ipa ɐ
length 140
FMT(vowel/V_2)
endphoneme
@@ -38,6 +39,7 @@ endphoneme
phoneme I // short I, Schwa
vowel starttype #@ endtype #@
ipa ə
length 140
IF nextPh(r/) THEN
Length 190
@@ -106,6 +108,7 @@ endphoneme
phoneme e@ // long E
vowel starttype #i endtype #@
ipa iə
length 230
FMT(vdiph/i@_2)
endphoneme
@@ -121,6 +124,7 @@ endphoneme
phoneme o@ // long O
vowel starttype #u endtype #@
ipa ʊə
length 250
FMT(vdiph2/o@)
endphoneme
@@ -165,6 +169,7 @@ endphoneme
phoneme eI
vowel starttype #e endtype #i
ipa ɛɪ
length 170
IfNextVowelAppend(;)
FMT(vdiph/@i_2)
@@ -181,6 +186,7 @@ endphoneme
phoneme oI
vowel starttype #o endtype #i
ipa ʊɪ
length 290
IfNextVowelAppend(;)
FMT(vdiph/oi_2)
@@ -325,4 +331,3 @@ phoneme c // used in -tjie
WAV(ustop/ki)
endphoneme
+1
View File
@@ -12,6 +12,7 @@ endphoneme
phoneme a#
vowel starttype #@ endtype #@
ipa ɐ
unstressed
length 170
FMT(vowel/a#_3)
+1 -8
View File
@@ -230,13 +230,6 @@ phoneme x
endphoneme
phoneme r- // syllabic r
vowel starttype #@ endtype #@
length 240
FMT(vowelr/r-voc)
endphoneme
phoneme R
import_phoneme base/R
endphoneme
@@ -245,7 +238,7 @@ endphoneme
phoneme r*
vowel nonsyllabic
unstressed
ipa r
ipa NULL
length 50
starttype #@ endtype #@
AppendPhoneme(*)
+5 -1
View File
@@ -204,6 +204,7 @@ endphoneme
phoneme i // optional variant of [I] for end of words
vowel starttype #i endtype #i
ipa ɪ
length 140
IfNextVowelAppend(;)
FMT(vowel/ii_en)
@@ -334,7 +335,7 @@ endphoneme
phoneme aI
vowel starttype #a endtype #i
length 240
IF nextPh(#a) OR nextPh(#o) THEN
IF nextPh(#a) THEN
AppendPhoneme(;)
ENDIF
FMT(vdiph/ai_2)
@@ -383,6 +384,9 @@ phoneme U@
vowel starttype #u endtype #@
length 200
IfNextVowelAppend(r-)
IF thisPh(isUnstressed) THEN
FMT(vdiph2/8@)
ENDIF
FMT(vdiph2/uu@)
endphoneme
+123 -29
View File
@@ -1,7 +1,7 @@
//====================================================
// French
//====================================================
// Updated 2010-07-16 Michel Such <michel.such@free.fr>
// Updated 2010-07-25 Michel Such <michel.such@free.fr>
phoneme #l virtual
// Used for l and l/
@@ -24,7 +24,7 @@ endphoneme
procedure pre_r
IF prevPh(y) THEN
VowelEnding(vwl_fr/y2r)
ELIF prevPh(E) OR prevPh(E2) THEN
ELIF prevPh(E) THEN
VowelEnding(vwl_fr/e_2r)
ELIF prevPh(A~) THEN
VowelEnding(vwl_fr/aa2r)
@@ -47,7 +47,7 @@ endprocedure
procedure post_r
IF nextPh(E) OR nextPh(E2) THEN
IF nextPh(E) THEN
VowelStart(vwl_fr/re2)
ELIF nextPh(W) THEN
VowelStart(vwl_fr/r@2)
@@ -285,6 +285,11 @@ phoneme a
endphoneme
phoneme a# // For english words
import_phoneme en/a#
endphoneme
phoneme e
vowel starttype #e endtype #e
@@ -313,14 +318,6 @@ phoneme E
endphoneme
phoneme E2 // Between e and E
vowel starttype #e endtype #e
length 170
FMT(vowel/e_9)
endphoneme
phoneme i
vowel starttype #i endtype #i
palatal
@@ -347,15 +344,13 @@ phoneme i
endphoneme
phoneme I // longer than i
vowel starttype #i endtype #i
palatal
length 240
ipa i
phoneme I // For english words
import_phoneme en/I
endphoneme
IfNextVowelAppend(;)
FMT(vowel/i_3)
phoneme I2 // For english words
import_phoneme en/I2
endphoneme
@@ -396,18 +391,22 @@ phoneme O
vowel starttype #o endtype #o
length 170
IF nextPhW(z) OR nextPhW(z2) OR nextPhW(z3) THEN
ChangePhoneme(o)
IF thisPh(isFinalVowel) THEN
FMT(vowel/o_mid2)
ENDIF
IF nextPhW(#l) AND next2Ph(isNotVowel) THEN
FMT(vowel/o_mid2)
ENDIF
IF nextPhW(#r) AND next2Ph(isNotVowel) THEN
FMT(vowel/o_mid2)
ENDIF
FMT(vowel/o_mid2)
FMT(vowel/o_mid)
endphoneme
phoneme o3 // almost like english oU
vowel starttype #@ endtype #u
length 220
FMT(vdiph/@u_3)
phoneme oU
import_phoneme en/oU
endphoneme
@@ -451,6 +450,15 @@ phoneme W
endphoneme
phoneme W2 // For english words
vowel starttype #@ endtype #@
length 100
unstressed
FMT(vowel/@_6)
endphoneme
phoneme Y
vowel starttype #@ endtype #@
length 170
@@ -714,14 +722,14 @@ phoneme p
Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
IF nextPh(isPause2) THEN
WAV(ustop/p_, 70)
WAV(ustop/p_, 80)
ELIF nextPh(@-) THEN
WAV(ustop/p_unasp, 60)
WAV(ustop/p_unasp, 70)
ELIF nextPh(#l) THEN
WAV(ustop/pl, 30)
WAV(ustop/pl, 40)
ELIF nextPh(#r) THEN
length 40
WAV(ustop/p_, 60)
WAV(ustop/p_, 70)
ENDIF
WAV(ustop/p_unasp_, 90)
endphoneme
@@ -849,6 +857,14 @@ phoneme v
FMT(voc/v) addWav(vocw/v, 60)
endphoneme
phoneme V // For english words
vowel starttype #a endtype #@
length 140
ChangeIfDiminished(@)
FMT(vowel/V_2)
endphoneme
phoneme z
vcd alv frc sibilant
@@ -895,4 +911,82 @@ phoneme z3 // "six" and "dix". [s] before pause, [z] before vowel, else []
endphoneme
// translate from English to French phonemes
equivalents en
remove_stress
0 O
3 W r
3: W : r
@ W
@- W
@2 W
@5 W
@L W l
a a
a# a#
A: a :
A@ a r
aa a :
aI a j
aI@ a j W2 r
aU a w
aU@ a w @
A~ A~
E E
e: e
e@ E : r
eI E : j/
i i
I I
I2 I2
i: i :
i@ i r
i@3 i : r
O O
O: O :
o: o
O@ O r
o@ O r
OI O j
oU oU
O~ O~
U u
u: u:
U@ u r
V V
IR i r
VR W r
b b
C C
d d
D D
dZ dZ
f f
g g
h h
j j
k k
l l
l# l#
m m
n n
N N
n^ n^
p p
Q Q
r r
r- r
s s
S S
t t
T T
t2 t
tS tS
v v
w w/
x x
z z
Z Z
endphoneme
+79 -1
View File
@@ -110,7 +110,7 @@ endphoneme
phoneme A // reduces to [a] if not stressed
vowel starttype #a endtype #a
length 250
ChangeIfNotStressed(a)
ChangeIfUnstressed(a)
FMT(vowel/aa_6)
endphoneme
@@ -377,3 +377,81 @@ phoneme UR
endphoneme
// translate from English to German phonemes
equivalents en
0 O
3 3
3: W :
@ @
@- @-
@2 @
@5 @
@L U l
a a
a# a
A: A:
A@ A: r
aa a
aI aI
aI@ aI 3
aU aU
aU@ aU 3
A~ O n
E E
e: e:
e@ E: r
eI e:
i I
I I
I2 I
i: i:
i@ i: 3
i@3 i: r
O O
O: O :
o: o:
O@ O : r
o@ O : r
OI OY
oU o:
O~ O n
U U
u: u:
U@ U r
V W
IR I r
VR W r
b b
C C
d d
D D
dZ dZ
f f
g g
h h
j j
k k
l l
l# l#
m m
n n
N N
n^ n^
p p
Q Q
r r
r- r
s s
S S
t t
T T
t2 t
tS tS
v v
w w
x x
z z
Z Z
endphoneme
+7
View File
@@ -477,5 +477,12 @@ phoneme gh
FMT(g2/xg) addWav(ustop/k_asp, 70)
endphoneme
//================
phoneme #X2 // click, use for indicating combining long vowels
vls alv frc sibilant
lengthmod 3
WAV(ustop/percus02)
endphoneme
+2 -2
View File
@@ -102,14 +102,14 @@ endphoneme
phoneme r-
phoneme r- // syllabic r
vowel starttype #@ endtype #@
ipa rU+0329
length 220
FMT(vowelr/r-voc)
endphoneme
phoneme r:
phoneme r: // syllabic r
vowel starttype #@ endtype #@
ipa rU+0329ː
length 300
+2
View File
@@ -53,6 +53,7 @@ endphoneme
phoneme E-
vowel starttype #@ endtype #@
ipa ə
unstressed
length 140
FMT(vowel/ee#_2)
@@ -74,6 +75,7 @@ endphoneme
phoneme u-
vowel starttype #u endtype #u
ipa ʉ
length 200
FMT(vowel/u#_2)
endphoneme
+8
View File
@@ -85,8 +85,15 @@ phoneme u
FMT(vowel/u_6)
endphoneme
phoneme u2 // as [u] but don't reduce
vowel starttype #u endtype #u
length 110
FMT(vowel/u_6)
endphoneme
phoneme U
vowel starttype #u endtype #u
ipa ʉ
length 110
FMT(vowel/u#_3)
endphoneme
@@ -103,6 +110,7 @@ endphoneme
phoneme U:
vowel starttype #u endtype #u
ipa ʉ
length 240
FMT(vowel/u#_3)
endphoneme
+4 -1
View File
@@ -84,14 +84,17 @@ phoneme u
FMT(vowel/u_2)
endphoneme
phoneme U
vowel starttype #u endtype #u
length 150
FMT(vowel/uu_2)
endphoneme
phoneme @ // previously u#
phoneme @
vowel starttype #@ endtype #@
ipa ɯ
length 150
FMT(vowel/u#_7)
endphoneme
+6
View File
@@ -198,6 +198,7 @@ endphoneme
phoneme m-
vowel starttype #@ endtype #@
ipa mU+0329
length 170
IF thisPh(isWordStart) THEN
@@ -211,6 +212,7 @@ endphoneme
phoneme n-
vowel starttype #@ endtype #@
ipa nU+0329
length 170
IF thisPh(isWordStart) THEN
@@ -224,6 +226,7 @@ endphoneme
phoneme N-
vowel starttype #e endtype #e
ipa ŋU+0329
length 190
FMT(nn/nn-syl)
endphoneme
@@ -1811,3 +1814,6 @@ include ph_northern-sotho
phonemetable ht fr
include ph_haitian
phonemetable az tr
include ph_azerbaijani
Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

BIN
View File
Binary file not shown.