mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 06:12:55 +00:00
et: fi: move configuration from code to language file
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
name Estonian
|
||||
language et
|
||||
|
||||
stressAmp 18 16 22 22 20 22 22 22
|
||||
stressLength 150 180 200 200 0 0 210 250
|
||||
stressOpt 1 2 4 6 // (S_NO_DIM + S_FINAL_DIM = S_FINAL_DIM_ONLY), S_FINAL_NO_2, S_2_TO_HEAVY
|
||||
stressRule 0
|
||||
|
||||
intonation 3
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
name Finnish
|
||||
language fi
|
||||
|
||||
|
||||
stressAmp 18 16 22 22 20 22 22 22
|
||||
stressLength 150 180 200 200 0 0 210 250
|
||||
stressOpt 1 2 4 6 // (S_NO_DIM + S_FINAL_DIM = S_FINAL_DIM_ONLY), S_FINAL_NO_2, S_2_TO_HEAVY
|
||||
stressRule 0
|
||||
|
||||
intonation 3
|
||||
@@ -799,19 +799,12 @@ Translator *SelectTranslator(const char *name)
|
||||
// fallthrough:
|
||||
case L('f', 'i'): // Finnish
|
||||
{
|
||||
static const unsigned char stress_amps_fi[8] = { 18, 16, 22, 22, 20, 22, 22, 22 };
|
||||
static const short stress_lengths_fi[8] = { 150, 180, 200, 200, 0, 0, 210, 250 };
|
||||
|
||||
SetupTranslator(tr, stress_lengths_fi, stress_amps_fi);
|
||||
|
||||
tr->langopts.stress_rule = STRESSPOSN_1L;
|
||||
tr->langopts.param[LOPT_IT_DOUBLING] = 1;
|
||||
tr->langopts.long_stop = 130;
|
||||
|
||||
tr->langopts.numbers = NUM_DECIMAL_COMMA | NUM_ALLOW_SPACE | NUM_DFRACTION_2 | NUM_ORDINAL_DOT;
|
||||
SetLetterVowel(tr, 'y');
|
||||
tr->langopts.spelling_stress = 1;
|
||||
tr->langopts.intonation_group = 3; // less intonation, don't raise pitch at comma
|
||||
}
|
||||
break;
|
||||
case L('f', 'r'): // french
|
||||
|
||||
Reference in New Issue
Block a user