mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
new configurable language option: spellingStress
This commit is contained in:
@@ -95,6 +95,10 @@ if (CheckTranslator(translator, langopts_tab, key) != 0) {
|
||||
translator->langopts.lowercase_sentence = true;
|
||||
break;
|
||||
}
|
||||
case V_SPELLINGSTRESS: {
|
||||
translator->langopts.spelling_stress = true;
|
||||
break;
|
||||
}
|
||||
case V_STRESSADD: { // stressAdd
|
||||
int stress_add_set = 0;
|
||||
int stress_add[8];
|
||||
|
||||
@@ -112,6 +112,7 @@ typedef enum {
|
||||
V_WORDGAP,
|
||||
V_INTONATION,
|
||||
V_TUNES,
|
||||
V_SPELLINGSTRESS,
|
||||
V_STRESSLENGTH,
|
||||
V_STRESSAMP,
|
||||
V_STRESSADD,
|
||||
@@ -145,6 +146,7 @@ static const MNEM_TAB langopts_tab[] = {
|
||||
{ "l_sonorant_min", 0x100+LOPT_SONORANT_MIN },
|
||||
{ "lowercaseSentence", V_LOWERCASE_SENTENCE },
|
||||
{ "numbers", V_NUMBERS },
|
||||
{ "spellingStress", V_SPELLINGSTRESS },
|
||||
{ "stressAdd", V_STRESSADD },
|
||||
{ "stressAmp", V_STRESSAMP },
|
||||
{ "stressLength", V_STRESSLENGTH },
|
||||
|
||||
Reference in New Issue
Block a user