mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 14:17:12 +00:00
[1.39.48]
Fix lettergroups: Sort items to longest first. Lang en-us: Use rhotic [3] in place of [@] when [r] follows. Voice files: add attribute "fast-test" to experiment with faster talking speeds. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@212 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+40
-31
@@ -69,44 +69,46 @@ static int len_path_voices;
|
||||
espeak_VOICE voice_selected;
|
||||
|
||||
|
||||
|
||||
#define V_NAME 1
|
||||
#define V_LANGUAGE 2
|
||||
#define V_GENDER 3
|
||||
#define V_TRANSLATOR 4
|
||||
#define V_PHONEMES 5
|
||||
#define V_DICTIONARY 6
|
||||
enum {
|
||||
V_NAME = 1,
|
||||
V_LANGUAGE,
|
||||
V_GENDER,
|
||||
V_TRANSLATOR,
|
||||
V_PHONEMES,
|
||||
V_DICTIONARY,
|
||||
|
||||
// these affect voice quality, are independent of language
|
||||
#define V_FORMANT 7
|
||||
#define V_PITCH 8
|
||||
#define V_ECHO 9
|
||||
#define V_FLUTTER 10
|
||||
#define V_ROUGHNESS 11
|
||||
#define V_CLARITY 12
|
||||
#define V_TONE 13
|
||||
#define V_VOICING 14
|
||||
#define V_BREATH 15
|
||||
#define V_BREATHW 16
|
||||
V_FORMANT,
|
||||
V_PITCH,
|
||||
V_ECHO,
|
||||
V_FLUTTER,
|
||||
V_ROUGHNESS,
|
||||
V_CLARITY,
|
||||
V_TONE,
|
||||
V_VOICING,
|
||||
V_BREATH,
|
||||
V_BREATHW,
|
||||
|
||||
// these override defaults set by the translator
|
||||
#define V_WORDGAP 17
|
||||
#define V_INTONATION 18
|
||||
#define V_STRESSLENGTH 19
|
||||
#define V_STRESSAMP 20
|
||||
#define V_STRESSADD 21
|
||||
#define V_DICTRULES 22
|
||||
#define V_STRESSRULE 23
|
||||
#define V_CHARSET 24
|
||||
#define V_NUMBERS 25
|
||||
#define V_OPTION 26
|
||||
V_WORDGAP,
|
||||
V_INTONATION,
|
||||
V_STRESSLENGTH,
|
||||
V_STRESSAMP,
|
||||
V_STRESSADD,
|
||||
V_DICTRULES,
|
||||
V_STRESSRULE,
|
||||
V_CHARSET,
|
||||
V_NUMBERS,
|
||||
V_OPTION,
|
||||
|
||||
#define V_MBROLA 27
|
||||
#define V_KLATT 28
|
||||
V_MBROLA,
|
||||
V_KLATT,
|
||||
V_FAST,
|
||||
|
||||
// these need a phoneme table to have been specified
|
||||
#define V_REPLACE 29
|
||||
#define V_CONSONANTS 30
|
||||
V_REPLACE,
|
||||
V_CONSONANTS
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -147,6 +149,7 @@ static keywtab_t keyword_tab[] = {
|
||||
{"mbrola", V_MBROLA},
|
||||
{"consonants", V_CONSONANTS},
|
||||
{"klatt", V_KLATT},
|
||||
{"fast_test", V_FAST},
|
||||
|
||||
// these just set a value in langopts.param[]
|
||||
{"l_dieresis", 0x100+LOPT_DIERESES},
|
||||
@@ -385,6 +388,7 @@ void VoiceReset(int tone_only)
|
||||
voice->consonant_amp = 100;
|
||||
voice->consonant_ampv = 100;
|
||||
memset(voice->klatt,0,sizeof(voice->klatt));
|
||||
memset(speed.fast_settings,0,sizeof(speed.fast_settings));
|
||||
|
||||
#ifdef PLATFORM_RISCOS
|
||||
voice->roughness = 1;
|
||||
@@ -880,6 +884,11 @@ voice_t *LoadVoice(const char *vname, int control)
|
||||
voice->klatt[KLATT_Kopen] -= 40;
|
||||
break;
|
||||
|
||||
case V_FAST:
|
||||
Read8Numbers(p,speed.fast_settings);
|
||||
SetSpeed(2);
|
||||
break;
|
||||
|
||||
default:
|
||||
if((key & 0xff00) == 0x100)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user