mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-24 20:31:15 +00:00
Merge commit '3b2094592c' into android
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
@@ -113,6 +113,10 @@ phoneme I2
|
||||
CALL I
|
||||
endphoneme
|
||||
|
||||
phoneme I#
|
||||
vowel starttype #@ endtype #@
|
||||
ChangePhoneme(I2)
|
||||
endphoneme
|
||||
|
||||
phoneme i // optional variant of [I] for end of words
|
||||
vowel starttype #i endtype #e
|
||||
@@ -171,11 +175,10 @@ endphoneme
|
||||
|
||||
phoneme 3:
|
||||
vowel starttype #e endtype #@
|
||||
length 210
|
||||
length 230
|
||||
ChangeIfNotStressed(VR) // also need "replace 02 3: VR" in voice file
|
||||
ipa e
|
||||
AppendPhoneme(r)
|
||||
FMT(vdiph2/e@)
|
||||
FMT(vowelr/e_r)
|
||||
endphoneme
|
||||
|
||||
|
||||
@@ -217,7 +220,7 @@ phoneme o@
|
||||
length 230
|
||||
ipa o
|
||||
AppendPhoneme(r)
|
||||
FMT(vowelr/o_r)
|
||||
FMT(vowelr/oo_r)
|
||||
endphoneme
|
||||
|
||||
|
||||
@@ -310,7 +313,7 @@ endphoneme
|
||||
phoneme i@3
|
||||
vowel starttype #i endtype #@
|
||||
ipa ɪ
|
||||
length 220
|
||||
length 240
|
||||
AppendPhoneme(r)
|
||||
FMT(vowelr/i_r)
|
||||
endphoneme
|
||||
|
||||
+4
-11
@@ -41,14 +41,6 @@ phoneme @2 // Schwa, changes to I before a vowel
|
||||
FMT(vowel/@_low2)
|
||||
endphoneme
|
||||
|
||||
phoneme @L
|
||||
vowel starttype #@ endtype l
|
||||
ipa əl
|
||||
unstressed
|
||||
length 160
|
||||
FMT(vwl_en/@L)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme a
|
||||
vowel starttype #e endtype #@
|
||||
@@ -130,7 +122,6 @@ phoneme 0
|
||||
ChangeIfDiminished(@)
|
||||
IF nextPh(r) THEN
|
||||
ChangePhoneme(O:)
|
||||
// FMT(vwl_en_us/oor)
|
||||
ENDIF
|
||||
FMT(vowel/aa_8)
|
||||
endphoneme
|
||||
@@ -177,6 +168,7 @@ phoneme 3:
|
||||
vowel starttype #@ endtype #@
|
||||
length 240
|
||||
IfNextVowelAppend(r-)
|
||||
ChangeIfDiminished(3)
|
||||
FMT(vwl_en_us/3_us2)
|
||||
endphoneme
|
||||
|
||||
@@ -266,7 +258,7 @@ endphoneme
|
||||
phoneme eI
|
||||
vowel starttype #e endtype #i
|
||||
length 230
|
||||
FMT(vdiph2/ei_4)
|
||||
FMT(vdiph/eei_5)
|
||||
endphoneme
|
||||
|
||||
|
||||
@@ -366,7 +358,8 @@ phoneme t
|
||||
voicingswitch d
|
||||
lengthmod 2
|
||||
|
||||
IF prevPhW(isVowel) OR prevPhW(n) THEN
|
||||
// IF prevPhW(isVowel) OR prevPhW(n) THEN
|
||||
IF prevPhW(isVowel) THEN // test, don't reduce [t] after [n]
|
||||
IF nextPhW(isVowel) AND nextPh(isUnstressed) THEN
|
||||
IF next2Ph(n) AND next2Ph(notWordStart) THEN
|
||||
ELSE
|
||||
|
||||
+13
-1
@@ -113,10 +113,22 @@ phoneme k
|
||||
import_phoneme consonants/k-
|
||||
endphoneme
|
||||
|
||||
phoneme q
|
||||
vls uvl stop
|
||||
lengthmod 2
|
||||
Vowelin f1=1 f2=1700 0 200 f3=-300 80 gpaus f4 rms=30
|
||||
Vowelout f1=1 f2=1700 -100 200 f3=-300 80 f4 rms=35
|
||||
|
||||
IF nextPh(#i) THEN
|
||||
WAV(ustop/q2_i, 40)
|
||||
ENDIF
|
||||
WAV(ustop/q2, 48)
|
||||
endphoneme
|
||||
|
||||
|
||||
|
||||
phoneme Q
|
||||
import_phoneme base/Q"
|
||||
import_phoneme base/r"
|
||||
endphoneme
|
||||
|
||||
phoneme r
|
||||
|
||||
@@ -39,7 +39,6 @@ phoneme &~
|
||||
vowel starttype #@ endtype #@
|
||||
ipa ɐU+0303
|
||||
length 180
|
||||
// ChangeIfNotStressed(&)
|
||||
FMT(vnasal/a#_n)
|
||||
endphoneme
|
||||
|
||||
@@ -225,3 +224,10 @@ phoneme *
|
||||
endphoneme
|
||||
|
||||
|
||||
// TESTING
|
||||
phoneme &2~
|
||||
vowel starttype #@ endtype #@
|
||||
ipa ɐU+0303
|
||||
length 200
|
||||
FMT(vnasal/W_n)
|
||||
endphoneme
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
//====================================================
|
||||
// Phonemes adjusted for Urdu by Him Prasad Gautam.
|
||||
//====================================================
|
||||
|
||||
|
||||
phoneme : // Lengthen the previous vowel by "length"
|
||||
virtual
|
||||
length 120
|
||||
endphoneme
|
||||
|
||||
phoneme @
|
||||
vowel flag1 starttype #@ endtype #@
|
||||
length 130
|
||||
|
||||
ChangeIfDiminished(@-)
|
||||
IF nextPh(H) THEN
|
||||
FMT(vowel/@_low)
|
||||
ENDIF
|
||||
FMT(vowel/@_bck)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme V
|
||||
vowel flag1 starttype #@ endtype #@
|
||||
length 150
|
||||
CALL hi/V
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme @2
|
||||
vowel flag1 starttype #@ endtype #@
|
||||
length 150
|
||||
FMT(vowel/@_low)
|
||||
endphoneme
|
||||
|
||||
phoneme @3
|
||||
vowel flag1 starttype #@ endtype #@
|
||||
length 150
|
||||
ChangeIfDiminished(@-)
|
||||
FMT(vowel/@_3)
|
||||
endphoneme
|
||||
|
||||
|
||||
//====================================================
|
||||
// The rest Phonemes are inherted from Hindi.
|
||||
@@ -12,13 +12,13 @@ endphoneme
|
||||
|
||||
phoneme 2 // huyền tone: low falling
|
||||
stress
|
||||
Tone(20, 8, envelope/p_fall, NULL)
|
||||
Tone(20, 8, envelope/p_fall, NULL) //20
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme 3 // sắc Tone(rising
|
||||
stress
|
||||
Tone(25, 50, envelope/p_rise, NULL)
|
||||
Tone(25, 50, envelope/p_rise, NULL) // 25
|
||||
endphoneme
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@ endphoneme
|
||||
|
||||
phoneme 5 // ngã tone: broken (creaking rising)
|
||||
stress
|
||||
Tone(28, 58, envelope/p_214, envelope/vi_5amp)
|
||||
Tone(28,58, envelope/p_214, envelope/vi_5amp) // 28,58
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme 6 // nặng Tone(drop (constricted)
|
||||
stress
|
||||
length 75 // reduce the length of the vowel
|
||||
//length 150 // ignore because it make too short sound 75 // reduce the length of the vowel
|
||||
Tone(40, 20, envelope/p_512, envelope/vi_6amp)
|
||||
endphoneme
|
||||
|
||||
@@ -54,14 +54,14 @@ endphoneme
|
||||
|
||||
phoneme a
|
||||
vowel starttype #@ endtype #@
|
||||
length 130
|
||||
FMT(vowel/a_4)
|
||||
length 120
|
||||
FMT(vowel/a_6) //a_4)
|
||||
endphoneme
|
||||
|
||||
phoneme a:
|
||||
vowel starttype #a endtype #a
|
||||
length 280
|
||||
FMT(vowel/a_6)
|
||||
length 200 //280
|
||||
FMT(vietnam/a) //FMT(vowel/a_6)
|
||||
endphoneme
|
||||
|
||||
|
||||
@@ -91,26 +91,42 @@ endphoneme
|
||||
|
||||
phoneme O
|
||||
vowel starttype #o endtype #o
|
||||
length 200
|
||||
FMT(vowel/aa_4)
|
||||
IF nextPh(kh) THEN
|
||||
length 95
|
||||
ELSE
|
||||
length 200
|
||||
ENDIF
|
||||
FMT(vowel/aa_4)
|
||||
endphoneme
|
||||
|
||||
phoneme o
|
||||
vowel starttype #o endtype #o
|
||||
length 200
|
||||
IF nextPh(kh) THEN
|
||||
length 95
|
||||
ELSE
|
||||
length 200
|
||||
ENDIF
|
||||
FMT(vowel/o_2)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme u
|
||||
vowel starttype #u endtype #u
|
||||
length 200
|
||||
FMT(vowel/u_7)
|
||||
IF nextPh(kh) OR nextPh(N) THEN // hear as ung sound
|
||||
length 120
|
||||
ELSE
|
||||
length 200
|
||||
ENDIF
|
||||
FMT(vnasal/u_n) //vowel/u_7)
|
||||
endphoneme
|
||||
|
||||
phoneme y
|
||||
vowel starttype #u endtype #u
|
||||
length 200
|
||||
IF nextPh(kh) OR nextPh(N) THEN
|
||||
length 120
|
||||
ELSE
|
||||
length 200
|
||||
ENDIF
|
||||
FMT(vowel/u#_5)
|
||||
endphoneme
|
||||
|
||||
@@ -118,8 +134,12 @@ endphoneme
|
||||
|
||||
phoneme @
|
||||
vowel starttype #@ endtype #a
|
||||
length 130
|
||||
FMT(vowel/@_2)
|
||||
IF nextPh(kh) OR nextPh(N) THEN
|
||||
length 120
|
||||
ELSE
|
||||
length 170
|
||||
ENDIF
|
||||
FMT(vowel/V) //vowel/@_2)
|
||||
endphoneme
|
||||
|
||||
|
||||
@@ -136,28 +156,28 @@ endphoneme
|
||||
|
||||
phoneme aI
|
||||
vowel starttype #a endtype #i
|
||||
length 250
|
||||
FMT(vdiph/&i_3)
|
||||
length 200 //250
|
||||
FMT(vdiph/&y)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme a:I
|
||||
vowel starttype #a endtype #i
|
||||
length 250
|
||||
length 200 //250
|
||||
FMT(vdiph/ai)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme @I
|
||||
vowel starttype #@ endtype #i
|
||||
length 250
|
||||
length 200 //250
|
||||
FMT(vdiph/@i)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme @:I
|
||||
vowel starttype #@ endtype #i
|
||||
length 250
|
||||
length 200 //250
|
||||
FMT(vdiph/@i)
|
||||
endphoneme
|
||||
|
||||
@@ -214,7 +234,7 @@ endphoneme
|
||||
|
||||
phoneme a:U
|
||||
vowel starttype #a endtype #u
|
||||
length 270
|
||||
length 230 //270
|
||||
FMT(vdiph/au)
|
||||
endphoneme
|
||||
|
||||
@@ -241,7 +261,7 @@ endphoneme
|
||||
phoneme @U
|
||||
vowel starttype #@ endtype #u
|
||||
length 200
|
||||
FMT(vdiph/@u)
|
||||
FMT(vdiph/@u_3)
|
||||
endphoneme
|
||||
|
||||
phoneme @:U
|
||||
@@ -270,27 +290,123 @@ phoneme u@
|
||||
FMT(vdiph2/uu@)
|
||||
endphoneme
|
||||
|
||||
// Addition Dipthongs
|
||||
|
||||
phoneme o# // ông
|
||||
vowel starttype #o endtype #o
|
||||
length 200
|
||||
FMT(vnasal/a#u_n)
|
||||
endphoneme
|
||||
|
||||
phoneme O# // ong
|
||||
vowel starttype #o endtype #o
|
||||
length 200
|
||||
FMT(vnasal/&u_n)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme o@
|
||||
vowel starttype #o endtype #o
|
||||
length 160
|
||||
FMT(vdiph2/oa)
|
||||
endphoneme
|
||||
|
||||
phoneme o&
|
||||
vowel starttype #o endtype #o
|
||||
length 160
|
||||
FMT(vietnam/oe)
|
||||
endphoneme
|
||||
|
||||
phoneme kh
|
||||
vls vel frc
|
||||
lengthmod 3
|
||||
Vowelin f1=0 f2=2300 200 400 f3=200 80
|
||||
Vowelout f1=0 f2=2300 300 400 f3=200 80 rms=20
|
||||
WAV(ufric/x, 50)
|
||||
WAV(vietnam/_c,5) //ufric/x, 50)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme l
|
||||
liquid
|
||||
lengthmod 7
|
||||
//IF nextPh(isNotVowel) THEN
|
||||
// ChangePhoneme(l/2)
|
||||
//ENDIF
|
||||
|
||||
IF nextPh(isNotVowel) THEN
|
||||
ChangePhoneme(l/2)
|
||||
ENDIF
|
||||
|
||||
CALL vowelstart_l
|
||||
//CALL vowelstart_l
|
||||
|
||||
FMT(l/l_vi)
|
||||
endphoneme
|
||||
|
||||
phoneme t
|
||||
vls alv stop
|
||||
//voicingswitch d
|
||||
lengthmod 2
|
||||
Vowelin f1=0 f2=1700 -300 300 f3=-100 80
|
||||
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
|
||||
|
||||
WAV(vietnam/th, 50)
|
||||
endphoneme
|
||||
|
||||
phoneme cr
|
||||
vls pla afr sibilant
|
||||
//voicingswitch dZ
|
||||
lengthmod 2
|
||||
Vowelin f1=0 f2=2300 200 400 f3=-100 80
|
||||
|
||||
|
||||
WAV(vietnam/tr,10)
|
||||
endphoneme
|
||||
|
||||
phoneme d
|
||||
vcd alv stop
|
||||
lengthmod 5
|
||||
|
||||
Vowelin f1=1 f2=1700 -300 300 f3=-100 80
|
||||
Vowelout f1=2 f2=1700 -300 300 f3=-100 80 brk
|
||||
WAV(vietnam/dd)
|
||||
endphoneme
|
||||
|
||||
phoneme c
|
||||
vls pal stop palatal
|
||||
//voicingswitch J
|
||||
lengthmod 2
|
||||
length 75
|
||||
Vowelin f1=0 f2=2700 400 600 f3=300 80 rate len=70
|
||||
Vowelout f1=1 f2=2700 400 600 f3=200 70 len=50 colr=1
|
||||
|
||||
|
||||
WAV(vietnam/ch,5)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme p
|
||||
vls blb stop
|
||||
lengthmod 2
|
||||
Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
|
||||
Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
|
||||
|
||||
WAV(ustop/p_unasp_,10)
|
||||
|
||||
endphoneme
|
||||
|
||||
phoneme n
|
||||
vcd alv nasal
|
||||
Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
|
||||
Vowelout f1=2 f2=1700 -300 250 f3=-100 80 rms=20 brk
|
||||
lengthmod 4
|
||||
FMT(n/n#_)
|
||||
endphoneme
|
||||
|
||||
phoneme t[ // dental variant of /t/
|
||||
vls dnt stop
|
||||
voicingswitch d[
|
||||
lengthmod 2
|
||||
Vowelin f1=1 f2=1500 -250 250 f3=-100 80 amp=16
|
||||
Vowelout f1=0 f2=1500 -300 250 f3=-100 80 rms=20
|
||||
|
||||
IF nextPh(isPause2) THEN
|
||||
WAV(ustop/t_unasp2, 5)
|
||||
ENDIF
|
||||
WAV(ustop/t_hi, 70)
|
||||
endphoneme
|
||||
+4
-1
@@ -1727,6 +1727,9 @@ include ph_kannada
|
||||
phonemetable ml hi
|
||||
include ph_malayalam
|
||||
|
||||
phonemetable ur hi
|
||||
include ph_urdu
|
||||
|
||||
|
||||
phonemetable hu base
|
||||
include ph_hungarian
|
||||
@@ -1809,7 +1812,7 @@ phonemetable is base
|
||||
include ph_icelandic
|
||||
|
||||
phonemetable vi base
|
||||
include ph_vi
|
||||
include ph_vietnam
|
||||
|
||||
phonemetable zhy base
|
||||
include ph_zh_yue
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,133 +0,0 @@
|
||||
|
||||
//====================================================
|
||||
// Nepali (inherits from Hindi)
|
||||
//====================================================
|
||||
|
||||
phoneme V
|
||||
vowel starttype #@ endtype #@
|
||||
length 160
|
||||
ChangeIfNotStressed(@)
|
||||
IF nextPh(H) THEN
|
||||
FMT(vowel/@_low)
|
||||
ENDIF
|
||||
FMT(vowel/@_bck)
|
||||
endphoneme
|
||||
|
||||
phoneme @3 // use a more front [@] after palatal consonants
|
||||
vowel starttype #@ endtype #@
|
||||
length 140
|
||||
FMT(vowel/@_3)
|
||||
endphoneme
|
||||
|
||||
phoneme @/
|
||||
vowel starttype #@ endtype #@
|
||||
length 130
|
||||
IF nextPh(H) THEN
|
||||
FMT(vowel/@_low)
|
||||
ENDIF
|
||||
FMT(vowel/@_bck)
|
||||
endphoneme
|
||||
|
||||
|
||||
phoneme i
|
||||
vowel starttype #i endtype #i
|
||||
length 160
|
||||
IfNextVowelAppend(;)
|
||||
FMT(vowel/i)
|
||||
endphoneme
|
||||
|
||||
phoneme e
|
||||
vowel starttype #e endtype #e
|
||||
length 180
|
||||
FMT(vowel/e)
|
||||
endphoneme
|
||||
|
||||
phoneme a
|
||||
vowel long starttype #a endtype #a
|
||||
length 230
|
||||
FMT(vowel/aa_9)
|
||||
endphoneme
|
||||
|
||||
phoneme o
|
||||
vowel starttype #o endtype #o
|
||||
length 180
|
||||
FMT(vowel/o_mid)
|
||||
endphoneme
|
||||
|
||||
phoneme u
|
||||
vowel starttype #u endtype #u
|
||||
length 160
|
||||
FMT(vowel/u_bck)
|
||||
endphoneme
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Diphthongs
|
||||
//===========
|
||||
|
||||
|
||||
phoneme aI
|
||||
vowel long starttype #a endtype #i
|
||||
length 240
|
||||
long
|
||||
FMT(vdiph/aai)
|
||||
endphoneme
|
||||
|
||||
phoneme aU
|
||||
vowel long starttype #a endtype #u
|
||||
length 240
|
||||
long
|
||||
FMT(vdiph/aau_3)
|
||||
endphoneme
|
||||
|
||||
phoneme eI
|
||||
vowel long starttype #e endtype #i
|
||||
length 240
|
||||
long
|
||||
FMT(vdiph/eei)
|
||||
endphoneme
|
||||
|
||||
phoneme eU
|
||||
vowel long starttype #e endtype #u
|
||||
length 240
|
||||
long
|
||||
FMT(vdiph/eu)
|
||||
endphoneme
|
||||
|
||||
phoneme VI
|
||||
vowel long starttype #@ endtype #i
|
||||
length 240
|
||||
long
|
||||
FMT(vdiph/Vi)
|
||||
endphoneme
|
||||
|
||||
phoneme VU
|
||||
vowel long starttype #@ endtype #u
|
||||
length 240
|
||||
long
|
||||
FMT(vdiph/Vu)
|
||||
endphoneme
|
||||
|
||||
phoneme oI
|
||||
vowel long starttype #o endtype #i
|
||||
length 240
|
||||
long
|
||||
FMT(vdiph/oi)
|
||||
endphoneme
|
||||
|
||||
phoneme oU
|
||||
vowel long starttype #o endtype #u
|
||||
length 240
|
||||
long
|
||||
FMT(vdiph/ou)
|
||||
endphoneme
|
||||
|
||||
phoneme uI
|
||||
vowel long starttype #u endtype #i
|
||||
length 240
|
||||
long
|
||||
FMT(vdiph/ui)
|
||||
endphoneme
|
||||
|
||||
Reference in New Issue
Block a user