Browse Source

AppendPhonemes: Skip cleared item in phoneme_tab (#2091)

master
Samuel Thibault 5 months ago
parent
commit
e5b52dbd36
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/libespeak-ng/dictionary.c

+ 2
- 0
src/libespeak-ng/dictionary.c View File

@@ -1464,6 +1464,8 @@ void AppendPhonemes(Translator *tr, char *string, int size, const char *ph)
while ((c = *p++) != 0) {
if (c >= n_phoneme_tab) continue;

if (!phoneme_tab[c]) continue;

if (phoneme_tab[c]->type == phSTRESS) {
if (phoneme_tab[c]->std_length < 4)
unstress_mark = true;

Loading…
Cancel
Save