mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-13 01:07:47 +00:00
Removed lengthen penultimate stressed vowels from dictionary.c lines 1469-1475. (See #80).
Fixed length stressed vowels in tr_language.c (see #80). Improved phonemes, new statements for [a] and long close [o]. Added last improvements in italian dict source tested on april-may 2016.
This commit is contained in:
@@ -1465,15 +1465,6 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags,
|
||||
if (shorten)
|
||||
p++;
|
||||
}
|
||||
|
||||
if ((v_stress >= 4) && (tr->langopts.param[LOPT_IT_LENGTHEN] == 2)) {
|
||||
// LANG=Italian, lengthen penultimate stressed vowels, unless followed by 2 consonants
|
||||
if ((v == (vowel_count - 2)) && (syllable_weight[v] == 0)) {
|
||||
*output++ = phcode;
|
||||
phcode = phonLENGTHEN;
|
||||
}
|
||||
}
|
||||
|
||||
v++;
|
||||
}
|
||||
|
||||
|
||||
@@ -978,9 +978,9 @@ Translator *SelectTranslator(const char *name)
|
||||
case L('i', 't'): // Italian
|
||||
{
|
||||
static const short stress_lengths_it[8] =
|
||||
{ 165, 100, 170, 150, 0, 0, 215, 303 };
|
||||
{ 165, 130, 170, 150, 0, 0, 218, 305 };
|
||||
static const unsigned char stress_amps_it[8] =
|
||||
{ 16, 15, 16, 14, 20, 22, 22, 24 };
|
||||
{ 16, 18, 17, 14, 20, 22, 22, 22 };
|
||||
|
||||
SetupTranslator(tr, stress_lengths_it, stress_amps_it);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user