mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
Add --version command-line option. Allow hexadecimal numbers for UTF-8 bytes in rules in *_rules files. wave_pulse.cpp, ensure wave_close is not called again while waiting. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@278 d46cf337-b52f-0410-862d-fd96e6ae7743
152 lines
2.2 KiB
Plaintext
152 lines
2.2 KiB
Plaintext
|
|
//====================================================
|
|
// Italian
|
|
//====================================================
|
|
|
|
phoneme : // Lengthen previous vowel by "length"
|
|
virtual
|
|
length 50
|
|
endphoneme
|
|
|
|
|
|
phoneme a
|
|
vowel starttype #a endtype #a
|
|
length 180
|
|
ChangeIfNotStressed(a/)
|
|
FMT(vowel/a)
|
|
endphoneme
|
|
|
|
|
|
phoneme a/
|
|
vowel starttype #@ endtype #@
|
|
length 180
|
|
IF thisPh(isWordEnd) THEN
|
|
FMT(vowel/a#_4)
|
|
ENDIF
|
|
FMT(vowel/a_5)
|
|
endphoneme
|
|
|
|
|
|
phoneme e
|
|
vowel starttype #e endtype #e
|
|
length 170
|
|
ChangeIfNotStressed(e/)
|
|
FMT(vowel/e_2)
|
|
endphoneme
|
|
|
|
phoneme e/
|
|
vowel starttype #e endtype #e
|
|
length 170
|
|
IF nextPhW(isNasal) OR nextPhW(isLiquid) THEN
|
|
FMT(vowel/e_mid2)
|
|
ELSE
|
|
FMT(vowel/e)
|
|
ENDIF
|
|
endphoneme
|
|
|
|
|
|
|
|
phoneme E
|
|
vowel starttype #e endtype #e
|
|
length 170
|
|
ChangeIfUnstressed(e/) // [E] only in stressed syllables ?
|
|
FMT(vowel/e_mid)
|
|
endphoneme
|
|
|
|
|
|
phoneme i
|
|
vowel starttype #i endtype #i
|
|
length 140
|
|
IfNextVowelAppend(;)
|
|
FMT(vowel/i)
|
|
endphoneme
|
|
|
|
|
|
phoneme i# // Used for 'gia_' where [i] is only spoken if stressed
|
|
vowel starttype #i endtype #i
|
|
length 140
|
|
ChangeIfNotStressed(NULL)
|
|
ChangePhoneme(i)
|
|
endphoneme
|
|
|
|
|
|
phoneme I
|
|
vowel starttype #i endtype #i
|
|
length 150
|
|
IfNextVowelAppend(;)
|
|
FMT(vowel/i_4)
|
|
endphoneme
|
|
|
|
|
|
|
|
phoneme o
|
|
vowel starttype #o endtype #o
|
|
length 170
|
|
ChangeIfNotStressed(o/)
|
|
FMT(vowel/o)
|
|
endphoneme
|
|
|
|
phoneme o/
|
|
vowel starttype #o endtype #o
|
|
length 170
|
|
IF nextPhW(isNasal) OR nextPhW(isLiquid) THEN
|
|
FMT(vowel/oo_1)
|
|
ELSE
|
|
FMT(vowel/o)
|
|
ENDIF
|
|
endphoneme
|
|
|
|
|
|
phoneme O
|
|
vowel starttype #o endtype #o
|
|
length 170
|
|
ChangeIfUnstressed(o/) // [O] only in stressed syllables ?
|
|
FMT(vowel/oo_4)
|
|
endphoneme
|
|
|
|
|
|
phoneme u
|
|
vowel starttype #u endtype #u
|
|
length 160
|
|
ChangeIfNotStressed(U)
|
|
FMT(vowel/u_bck)
|
|
endphoneme
|
|
|
|
phoneme U
|
|
vowel starttype #u endtype #u
|
|
length 160
|
|
FMT(vowel/u_bck)
|
|
endphoneme
|
|
|
|
|
|
phoneme aU
|
|
vowel starttype #a endtype #o
|
|
length 270
|
|
FMT(vdiph/aoo)
|
|
endphoneme
|
|
|
|
|
|
|
|
phoneme aI
|
|
vowel starttype #a endtype #i
|
|
length 250
|
|
FMT(vdiph/ai)
|
|
endphoneme
|
|
|
|
|
|
phoneme oI
|
|
vowel starttype #o endtype #i
|
|
length 230
|
|
FMT(vdiph/oi)
|
|
endphoneme
|
|
|
|
|
|
|
|
// CONSONANTS
|
|
//===========
|
|
|
|
phoneme l^
|
|
import_phoneme base/l^
|
|
Length 140
|
|
endphoneme
|