mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
These are causing problems with several of the voices. Revert "ipa: n (vcd alv nas)." commit8869c72d97. Revert "ipa: m (vcd blb nas)." commit581b366bb0. Revert "ipa: ɳ (vcd rfx nas)." commit7cc3a6c0c2. Revert "ipa: ɲ (vcd pal nas)." commiteda7bc03d6. Revert "ipa: ŋ (vcd vel nas)." commitefeca3b275. Revert "ipa: document the supported pulmonic consonants in ph_ipa as an IPA chart." commit675cec2fac. Revert "ipa: ɹ (vcd alv apr)." commit0f41dae8e9. Revert "ipa: t (vls alv stp)." commita49729cd70. Revert "ipa: ensure that each phoneme has an ipa annotation." commit3cdb952ea3. Revert "ipa: t̪ (vls dnt stp)." commitdd30a61186. Revert "ipa: d (vcd alv stp)" commita96f748470. Revert "ipa: d̪ (vcd dnt stp)" commit39f7e7b2f6. Revert "ipa: d͡ʒ (vcd pla sib afr)" commit16be8f19bf. Revert "ipa: d͡ʑ (vcd alp sib afr)." commit883187cfb5. Revert "ipa: ɟ (vcd pal stp)." commit2e682bcdc5. Revert "ipa: g (vcd vel stp)." commit679b939474. Revert "ipa: b (vcd blb stp)." commitfb6bd384ee. Revert "ipa: j (vcd pal apr)." commit1d36966b9f. Revert "ipa: w (vcd ptr vel apr)." commitefade0fc71. Revert "ipa: β (vcd blb frc)." commit063ee44a4f. Revert "ipa: v (vcd lbd frc)." commit3374b13ad6. Revert "ipa: ʋ (vcd lbd apr)." commit0a55fe6ad4. Revert "ipa: fix the 'Other Symbols' table." commit440fb6d4bb. Revert "ipa: ð (vcd dnt frc)." commit6eb518ee0f. Revert "ipa: d (vcd alv frc)." commit0574f488c3. Revert "ipa: ʒ (vcd pla frc)." commit7312b1b2a2. Revert "ipa: ʐ (vcd rfx frc)." commitdc937cf1de. Revert "ipa: ʑ (vcd alp sib frc)." commit8b55428ece. Revert "ipa: ʝ (vcd pal frc)." commit736fa69471. Revert "ipa: ɣ (vcd vel frc)." commit237af08312. Revert "ipa: ʁ (vcd uvl frc)." commit09601af6f5. Revert "ipa: t͡ʃ (vls pla sib afr)" commitd170b0c024. Revert "ipa: t͡ɕ (vls alp sib afr)" commit88bdbe9256. Revert "ipa: c (vls pal stp)" commite836376922. Revert "ipa: q (vls uvl stp)" commit695a9007aa. Revert "ipa: l (vcd alv lat apr)." commita5e5202ca5. Revert "ipa: ɫ (vcd alv fzd lat apr)." commit217eceeb34. Revert "ipa: ɭ (vcd rfx lat apr)." commitb7428eb443. Revert "ipa: ʎ (vcd pal lat apr)." commit74c3ff5c97. Revert "ipa: ʟ (vcd vel lat apr)." commit9796200f26. Revert "ipa: p (vls blb stp)." commit302decc882. Revert "ipa: k (vls vel stp)." commitd4a2846837. Revert "ipa: f (vls lbd frc)." commit175d3c0299. Revert "ipa: θ (vls dnt frc)." commitd2a04674e8. Revert "ipa: s (vls alv sib frc)." commitce810f3cd8. Revert "ipa: ʃ (vls pla sib frc)." commitdce61376d8. Revert "ipa: ʂ (vls rfx sib frc)." commit1135ff1013. Revert "ipa: zʲ (vls alv sib frc pzd)." commitd8aa055697. Revert "ipa: sʲ (vls alv sib frc pzd)." commite51dc6e61a. Revert "ipa: ɕ (vls alp sib frc)." commitcc7127d26e. Revert "ipa: ɬ (vls alv lat frc)." commite338295e19. Revert "ipa: ç (vls pal frc)." commitf05a32bf0f. Revert "ipa: x (vls vel frc)." commitc88c43eecc. Revert "ipa: χ (vls uvl frc)." commit5cb8ce12bd. Revert "ipa: h (vls glt frc)." commit98355a0f47. Revert "ipa: t͡s (vls alv sib afr)." commitdd66fe41e3. Revert "ipa: t͡s (vls alv sib afr)." commit2c45f60588. Revert "ipa: d͡z (vcd alv sib afr)" commit1cd9bf80b3. Revert "ipa: ʍ (vls ptr vel frc)" commit923bfdb82c. Revert "base1: Restore the original eSpeak definitions for /l/. The ipa table versions are causing issues." commit299c91aca1.
293 lines
5.3 KiB
Plaintext
293 lines
5.3 KiB
Plaintext
|
|
//====================================================
|
|
// Italian, last update February 4 2017 by Chris <llajta2012@gmail.com>
|
|
//====================================================
|
|
|
|
phoneme : // Lengthen previous vowel by "length"
|
|
virtual
|
|
length 50
|
|
endphoneme
|
|
|
|
|
|
phoneme a
|
|
vwl starttype #a endtype #a
|
|
length 160
|
|
ChangeIfNotStressed(a/)
|
|
IF thisPh(isWordEnd) AND prevPhW(t) AND thisPh(isStressed) THEN
|
|
FMT(vowel/a)
|
|
ENDIF
|
|
IF nextPhW(o/) OR prevPhW(isVowel) OR prevPhW(j) THEN
|
|
FMT(vowel/a)
|
|
ENDIF
|
|
FMT(vwl_it/a)
|
|
endphoneme
|
|
|
|
phoneme a/
|
|
vwl starttype #a endtype #a
|
|
length 150
|
|
IF prevPhW(l) THEN
|
|
FMT(vowel/a_7, 80)
|
|
ENDIF
|
|
IF thisPh(isWordEnd) THEN
|
|
FMT(vowel/a_8, 70)
|
|
ENDIF
|
|
IF thisPh(isWordStart) THEN
|
|
FMT(vwl_it/a, 85)
|
|
ENDIF
|
|
FMT(vowel/a_8, 80)
|
|
endphoneme
|
|
|
|
|
|
phoneme e
|
|
vwl starttype #e endtype #e
|
|
length 160
|
|
ChangeIfNotStressed(e/)
|
|
FMT(vowel/e_2)
|
|
endphoneme
|
|
|
|
phoneme e/
|
|
vwl starttype #e endtype #e
|
|
length 145
|
|
IF nextPhW(isNasal) OR nextPhW(isLiquid) THEN
|
|
FMT(vowel/e_mid2)
|
|
ELIF thisPh(isWordEnd) THEN
|
|
FMT(vowel/e, 65)
|
|
ENDIF
|
|
FMT(vowel/e)
|
|
endphoneme
|
|
|
|
phoneme E
|
|
vwl starttype #e endtype #e
|
|
length 150
|
|
ChangeIfUnstressed(e/)
|
|
FMT(vwl_it/e_open)
|
|
endphoneme
|
|
|
|
|
|
phoneme i
|
|
vwl starttype #i endtype #i
|
|
length 155
|
|
IfNextVowelAppend(;)
|
|
IF thisPh(isWordEnd) AND thisPh(isNotStressed) AND prevPhW(isNotVowel) THEN
|
|
ChangePhoneme(I)
|
|
ENDIF
|
|
IF thisPh(isNotStressed) AND prevPhW(isNotVowel) AND nextPhW(isVowel) THEN
|
|
ChangePhoneme(i/)
|
|
ENDIF
|
|
FMT(vwl_it/i)
|
|
endphoneme
|
|
|
|
phoneme i/
|
|
vwl starttype #i endtype #i
|
|
unstressed
|
|
length 130
|
|
IfNextVowelAppend(;)
|
|
FMT(vwl_it/i, 90)
|
|
endphoneme
|
|
|
|
phoneme i# // Used for 'gia_' where [i] is only spoken if stressed
|
|
vwl starttype #i endtype #i
|
|
length 145
|
|
ChangeIfNotStressed(NULL)
|
|
ChangePhoneme(i)
|
|
endphoneme
|
|
|
|
phoneme I
|
|
vwl starttype #i endtype #i
|
|
length 145
|
|
IfNextVowelAppend(;)
|
|
FMT(vowel/i_7)
|
|
endphoneme
|
|
|
|
|
|
phoneme o
|
|
vwl starttype #o endtype #o
|
|
length 170
|
|
ChangeIfNotStressed(o/)
|
|
FMT(vwl_it/o)
|
|
endphoneme
|
|
|
|
phoneme o/
|
|
vwl starttype #o endtype #o
|
|
length 145
|
|
IF nextPhW(isNasal) OR nextPhW(isLiquid) THEN
|
|
FMT(vwl_it/o_open, 80)
|
|
ENDIF
|
|
IF thisPh(isWordEnd) AND NOT prevPhW(a) THEN
|
|
length 150
|
|
FMT(vowel/o_mid, 65)
|
|
ENDIF
|
|
FMT(vowel/o, 90)
|
|
endphoneme
|
|
|
|
phoneme O
|
|
vwl starttype #o endtype #o
|
|
length 150
|
|
ChangeIfUnstressed(o/)
|
|
FMT(vwl_it/o_open)
|
|
endphoneme
|
|
|
|
|
|
phoneme u
|
|
vwl starttype #u endtype #u
|
|
length 175
|
|
ChangeIfNotStressed(U)
|
|
FMT(vwl_it/u)
|
|
endphoneme
|
|
|
|
phoneme U
|
|
vwl starttype #u endtype #u
|
|
length 140
|
|
FMT(vowel/u_bck2)
|
|
endphoneme
|
|
|
|
|
|
phoneme aU
|
|
vwl starttype #a endtype #u
|
|
length 270
|
|
FMT(vdiph/au_4)
|
|
endphoneme
|
|
|
|
phoneme aI
|
|
vwl starttype #a endtype #i
|
|
length 250
|
|
FMT(vdiph/ai)
|
|
endphoneme
|
|
|
|
phoneme oI
|
|
vwl starttype #o endtype #i
|
|
length 230
|
|
FMT(vdiph/oi)
|
|
endphoneme
|
|
|
|
|
|
// CONSONANTS
|
|
//==========
|
|
|
|
phoneme l
|
|
liquid
|
|
lengthmod 7
|
|
IF nextPh(isNotVowel) THEN
|
|
ChangePhoneme(l/)
|
|
ENDIF
|
|
|
|
NextVowelStarts
|
|
VowelStart(l/l@)
|
|
VowelStart(l/la, -10)
|
|
VowelStart(l/le, -15)
|
|
VowelStart(l/li, -15)
|
|
VowelStart(l/lo, -20)
|
|
VowelStart(l/lu, -17)
|
|
EndSwitch
|
|
IF prevPh(#@) THEN
|
|
VowelEnding(l/xl, -50)
|
|
ELIF prevPh(isVowel) THEN
|
|
VowelEnding(l/xl, -40)
|
|
ENDIF
|
|
|
|
IF prevPh(isPause) THEN
|
|
FMT(l/_l)
|
|
ENDIF
|
|
|
|
IF prevPh(t) THEN
|
|
FMT(l/tl)
|
|
ENDIF
|
|
|
|
IF prevPh(l/) THEN
|
|
FMT(l/l_long)
|
|
ENDIF
|
|
FMT(l/l)
|
|
endphoneme
|
|
|
|
phoneme l^
|
|
import_phoneme base1/l^
|
|
length 130
|
|
endphoneme
|
|
|
|
phoneme ts
|
|
vls alv afr sib
|
|
voicingswitch s
|
|
lengthmod 2
|
|
Vowelin f1=0 f2=1700 -300 300 f3=-100 60 len=60
|
|
Vowelout f1=0 f2=1700 -300 250 f3=-100 70 rms=18
|
|
IF nextPh(isPause2) THEN
|
|
WAV(ustop/ts_)
|
|
ENDIF
|
|
WAV(ustop/ts)
|
|
endphoneme
|
|
|
|
phoneme ts2
|
|
vls alv afr sib
|
|
voicingswitch dz
|
|
lengthmod 9
|
|
Vowelin f1=2 f2=1700 -300 300 f3=-200 120 len=10
|
|
Vowelout f1=0 f2=1700 -300 250 f3=-100 170 rms=20 brk
|
|
IF nextPh(isStressed) THEN
|
|
Vowelin f1=0 f2=1700 -300 300 f3=-100 60 len=60
|
|
Vowelout f1=0 f2=1700 -300 250 f3=-100 70 rms=14
|
|
WAV(ustop/ts_, 80)
|
|
ENDIF
|
|
WAV(ustop/ts_, 70)
|
|
endphoneme
|
|
|
|
phoneme dz
|
|
import_phoneme consonants/dz
|
|
voicingswitch z
|
|
lengthmod 3
|
|
endphoneme
|
|
|
|
phoneme ss
|
|
vls alv frc sib
|
|
voicingswitch z
|
|
lengthmod 6
|
|
Vowelin f1=2 f2=1700 -300 300 f3=-100 80
|
|
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
|
|
length 170
|
|
WAV(ufric/s, 86)
|
|
endphoneme
|
|
|
|
phoneme v
|
|
vcd lbd frc
|
|
voicingswitch f
|
|
lengthmod 6
|
|
Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
|
|
Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50
|
|
IF prevPhW(z) THEN
|
|
length 70
|
|
FMT(voc/v_) addWav(vocw/v, 60)
|
|
ENDIF
|
|
IF KlattSynth THEN
|
|
Vowelout f1=1 f2=1000 -500 -300 f3=-300 60 len=50 brk
|
|
IF nextPh(isPause2) THEN
|
|
FMT(klatt/v_) addWav(vocw/v)
|
|
ENDIF
|
|
FMT(klatt/v) addWav(vocw/v, 150)
|
|
ENDIF
|
|
|
|
IF nextPh(isPause2) THEN
|
|
FMT(voc/v_) addWav(vocw/v)
|
|
ENDIF
|
|
IF thisPh(isWordStart) AND nextPhW(isLiquid) THEN
|
|
length 70
|
|
ENDIF
|
|
FMT(voc/v) addWav(vocw/v, 90)
|
|
endphoneme
|
|
|
|
phoneme z
|
|
vcd alv frc sib
|
|
voicingswitch s
|
|
lengthmod 6
|
|
Vowelout f1=0 f2=1700 -300 300 f3=-100 60 len=50
|
|
|
|
IF KlattSynth THEN
|
|
Vowelin f1=0 f2=1390 -300 300 f3=0 0
|
|
Vowelout f1=1 f2=1390 -300 300 f3=-100 60 len=50 brk
|
|
ENDIF
|
|
|
|
IF nextPhW(v) OR nextPhW(b) THEN
|
|
FMT(voc/z) addWav(ufric/s!, 60)
|
|
ENDIF
|
|
FMT(voc/z) addWav(ufric/s_, 85)
|
|
endphoneme
|
|
|