mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 22:26:48 +00:00
[1.48.13]
Changes to: en, pt, it, implement ordinal numbers. eu, stress positions. es, revert change to [t] and [k] de, change to sounds "pr" and "kr". git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@387 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+9
-2
@@ -861,6 +861,7 @@ int TranslateWord(Translator *tr, char *word_start, int next_pause, WORD_TAB *wt
|
||||
int wmark;
|
||||
int was_unpronouncable = 0;
|
||||
int loopcount;
|
||||
int add_suffix_phonemes = 0;
|
||||
WORD_TAB wtab_null[8];
|
||||
|
||||
// translate these to get pronunciations of plural 's' suffix (different forms depending on
|
||||
@@ -1465,6 +1466,12 @@ if(end_type & SUFX_UNPRON)
|
||||
|
||||
/* determine stress pattern for this word */
|
||||
/******************************************/
|
||||
add_suffix_phonemes = 0;
|
||||
if(end_phonemes[0] != 0)
|
||||
{
|
||||
add_suffix_phonemes = 2;
|
||||
}
|
||||
|
||||
prefix_stress = 0;
|
||||
for(p = prefix_phonemes; *p != 0; p++)
|
||||
{
|
||||
@@ -1516,9 +1523,9 @@ if(end_type & SUFX_UNPRON)
|
||||
else
|
||||
{
|
||||
if(prefix_phonemes[0] == 0)
|
||||
SetWordStress(tr, phonemes, dictionary_flags, -1, 0);
|
||||
SetWordStress(tr, phonemes, dictionary_flags, -1, add_suffix_phonemes);
|
||||
else
|
||||
SetWordStress(tr, phonemes, dictionary_flags, -1, 0);
|
||||
SetWordStress(tr, phonemes, dictionary_flags, -1, add_suffix_phonemes);
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
sprintf(word_phonemes, "%s%s%s", unpron_phonemes, prefix_phonemes, phonemes);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user