[1.48.03]

Fix bug, use of the command-line  "espeakedit --compile" produced phoneme data
in which vowels started at full amplitude instead of gradual increase.

Fix bug:  SSML <break time=""> with values greater than 23 seconds were ignored
due to arithmetic overflow.

Phoneme definition files:
Added new function:  ChangeNextPhoneme().

Language changes include: da, en, fa, gu, hu, it, nl, pt, ta

Started new language: eu (Basque).

*_rules files:
Allow $p_alt1, $p_alt2, etc in pre-conditions.  The rule matches if the
characters before the current point in the word occur as an entry in the
*_list file with the corresponding $alt attibute.

Added condition $list.  This is similar to $p_alt etc, but examines
all words in the *_list file which don't have the $only attribute.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@374 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2014-03-04 16:52:26 +00:00
parent 227d37256e
commit 6bc5e798c1
47 changed files with 2442 additions and 1036 deletions
+17 -6
View File
@@ -1,5 +1,5 @@
93 phoneme tables
94 phoneme tables
new total
base 109 109
consonants 11 119
@@ -32,7 +32,7 @@ consonants 11 119
kn 17 149
ml 30 152
hu 25 124
lt 44 139
lt 42 139
lv 29 127
pl 22 122
sk 28 137
@@ -94,6 +94,7 @@ consonants 11 119
tt 23 120
ko 19 120
kl 18 119
eu 17 127
Data file Used by
b/b [b] base
@@ -220,7 +221,6 @@ dzh/dzh [dZ] base
[dZ;] ko
dzh/dzh_ [dZ] base
[dZ;] base
[dZ;] lt
[dZ] hr
[dZ;] hr
[dZ;] mk
@@ -235,7 +235,6 @@ dzh/dz_pzd [J] base
dzh/dz_pzd_ [J] base
dzh/xdzh [dZ] base
[dZ;] base
[dZ;] lt
[dZ] hr
[dZ;] hr
[dZ;] mk
@@ -845,6 +844,7 @@ ufric/s [s] base
[s] es
[z] sq
[s] da
[z] eu
ufric/s_ [s] base
[z] base
[s2] consonants
@@ -854,6 +854,7 @@ ufric/s_ [s] base
[z;] ro
[s] sw
[z] sq
[z] eu
ufric/s! [s] base
[s] fr
[s] es
@@ -878,6 +879,7 @@ ufric/sh_pzd2 [S] sr
[S;] zh
ufric/sh_rfx [s.] base
[s.] zh
[s] eu
ufric/s_pal [s^] et
ufric/s_pzd [s;] base
[z;] base
@@ -1085,12 +1087,16 @@ ustop/ts [ts] consonants
[ts] tn
[ts#] bo
[dz#] bo
[ts] eu
[tz] eu
ustop/ts_ [ts] consonants
[dz] consonants
[ts] lv
[ts] tn
[ts#] bo
[dz#] bo
[ts] eu
[tz] eu
ustop/ts2 [ts] lv
[ts] hy
[ts] ka
@@ -1130,7 +1136,6 @@ ustop/tsh_unasp2 [tS] bn
ustop/ts_pzd [tS;] base
[J#] hi
[J#] ml
[tS;] lt
[tS;] ru
[dZ;] sq
[tS;] tn
@@ -1811,6 +1816,8 @@ vowel/a_4 [a] ga
[a] es
[a] el
[a] vi
[a] eu
[a2] eu
vowel/a#_4 [a:] nl
[a] ml
[a] bg
@@ -2067,6 +2074,7 @@ vowel/e_mid2 [E] af
[e:] si
[e] mt
[e] bo
[e] eu
vowel/@_fnt [@] en-wi
[@2] en-wi
[@2] hr
@@ -2114,6 +2122,7 @@ vowel/i [i] base
[i] bo
[i] tt
[i] kl
[i] eu
vowel/i# [y:] cy
[i] vi-sgn
vowel/i_2 [i2] de
@@ -2369,6 +2378,7 @@ vowel/oo [o] base
[o] prs
[O] wo
[O:] wo
[o] eu
vowel/oo_1 [O:] en-n
[O:] en-rp
[O@] en-rp
@@ -2553,6 +2563,7 @@ vowel/u_bck2 [u] et
[u:] gd
[u] ht
[u] kl
[u] eu
vowel/u_bck3 [u:] et
[u] kk
vowel/uu [U] en
@@ -2640,6 +2651,7 @@ vowel/y# [Y] base2
[oe] zhy
[W] tr
[Y] mt
[Y] eu
vowel/y## [y] is
vowel/y_2 [y:] la
[y] zh
@@ -2907,7 +2919,6 @@ x/dzh [J] base
[dZ] base
x/dzh_ [dZ] base
[dZ;] base
[dZ;] lt
[dZ;] mk
[dZ;] ru
[J] sw
+176
View File
@@ -0,0 +1,176 @@
//====================================================
// Basque - based on Base2
//====================================================
phoneme a
vowel starttype #a endtype #a
length 200
FMT(vowel/a_4)
endphoneme
phoneme a2 // delete if the next vowel is 'a'. Used for numbers.
vowel starttype #a endtype #a
length 200
IF nextPh(#a) THEN
ChangePhoneme(NULL) // merge consecutive 'a'
ENDIF
FMT(vowel/a_4)
endphoneme
phoneme e
vowel starttype #e endtype #e
length 200
FMT(vowel/e_mid2)
endphoneme
phoneme i
vowel starttype #i endtype #i
length 190
IfNextVowelAppend(;)
FMT(vowel/i)
endphoneme
phoneme o
vowel starttype #o endtype #o
length 200
FMT(vowel/oo)
endphoneme
phoneme u
vowel starttype #u endtype #u
length 200
FMT(vowel/u_bck2)
endphoneme
phoneme Y
vowel starttype #@ endtype #@
length 200
FMT(vowel/y#)
endphoneme
// Note: I have made [s] and [z] the same, and similarly [ts] and [tz]
// These should be changed to the correct "s", "z", "ts" and "tz" sounds fo Basque.
phoneme s
vls alv frc sibilant
ipa ʂ
lengthmod 3
Vowelin f1=0 f2=1700 -300 300 f3=-100 80
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
IF nextPh(isPause) THEN
WAV(ufric/sh_rfx, 60)
ENDIF
WAV(ufric/sh_rfx, 90) // different from s but probably not correct
endphoneme
phoneme z
vls alv frc sibilant
ipa s
lengthmod 3
Vowelin f1=0 f2=1700 -300 300 f3=-100 80
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
// z+z=tz, z+g=zk, z+g=zt, z+b=zp
IF nextPh(z) THEN
ChangeNextPhoneme(tz)
ChangePhoneme(NULL)
ELSEIF nextPh(g) THEN
ChangeNextPhoneme(k)
ELSEIF nextPh(d) THEN
ChangeNextPhoneme(t)
ELSEIF nextPh(b) THEN
ChangeNextPhoneme(p)
ENDIF
IF nextPh(isPause) THEN
WAV(ufric/s_, 60)
ENDIF
WAV(ufric/s, 80)
endphoneme
phoneme ts
vls alv afr sibilant
ipa tʂ
lengthmod 2
Vowelin f1=0 f2=1700 -300 300 f3=-100 80
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
IF nextPh(isPause2) THEN
WAV(ustop/ts_)
ENDIF
WAV(ustop/ts)
endphoneme
phoneme tz
vls alv afr sibilant
ipa ts
lengthmod 2
Vowelin f1=0 f2=1700 -300 300 f3=-100 80
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
IF nextPh(isPause2) THEN
WAV(ustop/ts_)
ENDIF
WAV(ustop/ts)
endphoneme
phoneme t
vls dnt stop
lengthmod 2
// t+g=k, t+d=t, t+z=tz
IF nextPh(g) THEN
ChangeNextPhoneme(k)
ChangePhoneme(NULL)
ELSEIF nextPh(d) THEN
ChangeNextPhoneme(t)
ChangePhoneme(NULL)
ELSEIF nextPh(z) THEN
ChangeNextPhoneme(tz)
ChangePhoneme(NULL)
ENDIF
CALL base2/t
endphoneme
phoneme r
vcd alv flp rhotic
brkafter
ipa ɾ
lengthmod 3
IF nextPhW(isVowel) THEN
ChangePhoneme(**)
ENDIF
CALL base/*
endphoneme
phoneme b
import_phoneme es/b
endphoneme
phoneme d
import_phoneme es/d
endphoneme
phoneme g
import_phoneme es/g
endphoneme
+1 -23
View File
@@ -233,30 +233,8 @@ phoneme ts
endphoneme
phoneme dZ;
vcd pal afr sibilant palatal
voicingswitch tS;
lengthmod 5
Vowelin f1=2 f2=2700 400 600 f3=300 80 rate len=70
// use [tS;] and [dZ;] from base phonemes file
IF PreVoicing THEN
FMT(dzh/xdzh)
ENDIF
IF nextPh(isPause2) THEN
FMT(dzh/dzh_) addWav(x/dzh_)
ENDIF
endphoneme
phoneme tS;
vls pal afr sibilant palatal
voicingswitch dZ;
lengthmod 2
Vowelin f1=0 f2=2700 400 600 f3=300 80 rate len=70
WAV(ustop/ts_pzd)
endphoneme
phoneme t
vls dnt stop
+3
View File
@@ -1967,6 +1967,9 @@ include ph_korean
phonemetable kl base
include ph_greenlandic
phonemetable eu base2
include ph_basque
//phonemetable en2 en
//include ph_english_test