mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 22:07:12 +00:00
Fix: Speak punctuation option also caused text after [[ to be spoken as phoneme codes even if espeakPHONEMES flag is not set. Speak sequences of letters and dots as individual letters, and don't speak 'dot', eg. "u.s.a." Don't announce punctuation in the alternative text inside <audio ... </audio> Vowelcharts, show the positions of multiple FMT() in vowel phonemes definitions. Phoneme definitions: New attributes: flag1, flag2, flag3 New attribute: nopause. Prevents the insertion of a short pause when this phoneme starts a word which follows a vowel. New conditions: isFlag1, isFlag2, isFlag3, isSibilant. New statement: InsertPhoneme() Phonemes: improve syllablic [m-] [n-] [N-] *_rules: add attributes $p_alt .. $p_alt3, $w_alt .. $w_alt3 *_list: add attributes: $sentence, $atstart klatt synthesizer: implement echo. espeakedit, Prosody display: Indicate stressed and secondary-stress syllables. espeakedit: remember window size and position. Intonation: New file, 'phsource/intonation' to define 'tunes' which can be used from voice files. espeakedit: add Compile -> Intonationm data Speed: Increase range to 80 to 450, with default=175. Improve speaking at high speeds. lang=en: Reduce consecutive unstressed syllables to 'diminished' stress, only in unstressed words. lang=de: Change 'r' phoneme. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@244 d46cf337-b52f-0410-862d-fd96e6ae7743
161 lines
2.3 KiB
Plaintext
161 lines
2.3 KiB
Plaintext
|
|
|
|
//=========================================================
|
|
// Swedish
|
|
//=========================================================
|
|
|
|
|
|
// Vowels
|
|
//=======
|
|
|
|
phoneme i:
|
|
vowel starttype #i endtype #i
|
|
length 180
|
|
IfNextVowelAppend(;)
|
|
IF prevPh(w) THEN
|
|
VowelStart(w/wi2)
|
|
ENDIF
|
|
FMT(vowel/i_2)
|
|
endphoneme
|
|
|
|
phoneme I
|
|
vowel starttype #i endtype #i
|
|
length 130
|
|
IfNextVowelAppend(;)
|
|
FMT(vowel/ii_3)
|
|
endphoneme
|
|
|
|
phoneme e:
|
|
vowel starttype #e endtype #e
|
|
length 210
|
|
FMT(vowel/e_2)
|
|
endphoneme
|
|
|
|
phoneme E
|
|
vowel starttype #e endtype #e
|
|
length 140
|
|
ChangeIfUnstressed(E-)
|
|
FMT(vowel/ee)
|
|
endphoneme
|
|
|
|
phoneme E:
|
|
vowel starttype #e endtype #@
|
|
length 220
|
|
FMT(vowel/ee_1)
|
|
endphoneme
|
|
|
|
phoneme E3
|
|
vowel starttype #e endtype #e
|
|
length 140
|
|
ChangeIfDiminished(@)
|
|
FMT(vowel/ee_6)
|
|
endphoneme
|
|
|
|
phoneme E-
|
|
vowel starttype #@ endtype #@
|
|
unstressed
|
|
length 140
|
|
FMT(vowel/ee#_2)
|
|
endphoneme
|
|
|
|
|
|
|
|
phoneme y:
|
|
vowel starttype #u endtype #u
|
|
length 220
|
|
FMT(vowel/y_5)
|
|
endphoneme
|
|
|
|
phoneme y
|
|
vowel starttype #u endtype #u
|
|
length 140
|
|
FMT(vowel/yy_3)
|
|
endphoneme
|
|
|
|
phoneme u-
|
|
vowel starttype #u endtype #u
|
|
length 200
|
|
FMT(vowel/u#_2)
|
|
endphoneme
|
|
|
|
phoneme Y:
|
|
vowel starttype #@ endtype #@
|
|
length 220
|
|
FMT(vowel/y#_2)
|
|
endphoneme
|
|
|
|
phoneme W
|
|
vowel starttype #@ endtype #@
|
|
length 140
|
|
FMT(vowel/oe_4)
|
|
endphoneme
|
|
|
|
phoneme 8
|
|
vowel starttype #u endtype #u
|
|
length 140
|
|
FMT(vowel/8_2)
|
|
endphoneme
|
|
|
|
|
|
|
|
phoneme a
|
|
vowel starttype #a endtype #a
|
|
length 140
|
|
IF thisPh(isNotStressed) AND thisPh(isWordEnd) THEN
|
|
FMT(vowel/a#_2)
|
|
ENDIF
|
|
FMT(vowel/a_5)
|
|
endphoneme
|
|
|
|
phoneme &
|
|
vowel starttype #a endtype #a
|
|
length 140
|
|
FMT(vowel/&)
|
|
endphoneme
|
|
|
|
phoneme A:
|
|
vowel starttype #a endtype #a
|
|
length 250
|
|
FMT(vowel/aa_4)
|
|
endphoneme
|
|
|
|
phoneme O
|
|
vowel starttype #o endtype #o
|
|
length 140
|
|
FMT(vowel/oo)
|
|
endphoneme
|
|
|
|
phoneme o:
|
|
vowel starttype #o endtype #o
|
|
length 210
|
|
FMT(vowel/o)
|
|
endphoneme
|
|
|
|
phoneme U
|
|
vowel starttype #u endtype #u
|
|
length 140
|
|
FMT(vowel/uu_4)
|
|
endphoneme
|
|
|
|
phoneme u:
|
|
vowel starttype #u endtype #u
|
|
length 210
|
|
FMT(vowel/u_bck)
|
|
endphoneme
|
|
|
|
|
|
//===================================================
|
|
|
|
// CONSONANTS
|
|
//===========
|
|
|
|
|
|
phoneme sx // Swedish "sj" sound
|
|
vls vel frc
|
|
lengthmod 3
|
|
Vowelin f1=0 f2=2300 300 400 f3=200 100
|
|
Vowelout f1=0 f2=2300 300 400 f3=200 100 rms=20
|
|
WAV(ufric/sx_sv, 60)
|
|
endphoneme
|
|
|