mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
Previously, we used vdiph/ui_4 for [[ui]]; I think the main reason for that was that I didn’t like how the most common ⟨ui⟩, vdiph/ui, seemed to almost vanish in “Cuiviénen”. However, vdiph/ui_4 has the curious property that in some positions, e.g. ⟨uia⟩ in “tuia” or ⟨uil⟩ “tuilindo”, it sounds (to me) more like /ul/ than /ui/. (This also affects Finnish, which seems to be the only other language that uses vdiph/ui_4 [a few other languages also use it for [[ui]] but don’t seem to emit that phoneme in their rules files] – listen to eSpeak NG pronounce Finnish ”luiun”, for instance.) I eventually found out that this can be worked around by substantially lengthening the phoneme (length 500 seems to work in all positions), but this extreme length (the absolute maximum is just 511) becomes rather noticeable whenever the ui is used, including in positions where it had sounded just fine before. Meanwhile, the more standard vdiph/ui can be made to sound reasonably well in “Cuiviénen” with a much smaller increment to its length: 290 (as also in ph_lithuanian) instead of 240 (as in ph_base2) is enough. In this version, [[uI]] sounds acceptable enough for Elvish ⟨ui⟩ in all positions, as far as I can tell.
45 lines
674 B
Plaintext
45 lines
674 B
Plaintext
phoneme n
|
|
IF nextPhW(isVelar) THEN // /n/ is velarized to /N/ when before velar stops
|
|
ChangePhoneme(N)
|
|
ENDIF
|
|
CALL base1/n
|
|
endphoneme
|
|
|
|
phoneme w#
|
|
vls glt apr // [h]
|
|
ipa ʍ
|
|
|
|
IF nextPh(isVowel) THEN
|
|
NextVowelStarts
|
|
VowelStart(w/w@)
|
|
VowelStart(w/wa)
|
|
VowelStart(w/we)
|
|
VowelStart(w/wi)
|
|
VowelStart(w/wo)
|
|
VowelStart(w/wu)
|
|
EndSwitch
|
|
ENDIF
|
|
|
|
WAV(h/hu, 70)
|
|
endphoneme
|
|
|
|
|
|
phoneme aE
|
|
vwl starttype #a endtype #e
|
|
length 270
|
|
FMT(vdiph/ae)
|
|
endphoneme
|
|
|
|
phoneme aI
|
|
vwl starttype #a endtype #i
|
|
length 240
|
|
FMT(vdiph/ai)
|
|
endphoneme
|
|
|
|
phoneme uI
|
|
vwl starttype #u endtype #i
|
|
length 290
|
|
lng
|
|
FMT(vdiph/ui)
|
|
endphoneme
|