From 5e2c963006f0d734d849f6f7dfcf5c8699dc610c Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 7 Dec 2017 20:52:01 +0000 Subject: [PATCH] Fix pronouncing words like 'newsletter'. Reverts 60a584c0321ea690a9d016556c4ef3de4414c842. --- src/libespeak-ng/compiledata.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libespeak-ng/compiledata.c b/src/libespeak-ng/compiledata.c index 6002f4b9..b12d9705 100644 --- a/src/libespeak-ng/compiledata.c +++ b/src/libespeak-ng/compiledata.c @@ -312,6 +312,7 @@ static PHONEME_TAB *phoneme_out; static int n_phcodes_list[N_PHONEME_TABS]; static PHONEME_TAB_LIST phoneme_tab_list2[N_PHONEME_TABS]; static PHONEME_TAB *phoneme_tab2; +static int phoneme_flags; #define N_PROCS 50 int n_procs; @@ -1939,6 +1940,8 @@ static void CallPhoneme(void) phoneme_out->end_type = ph->end_type; phoneme_out->std_length = ph->std_length; phoneme_out->length_mod = ph->length_mod; + + phoneme_flags = ph->phflags & ~phARTICULATION; } } @@ -1975,7 +1978,7 @@ static int CompilePhoneme(int compile_phoneme) if_level = 0; if_stack[0].returned = 0; after_if = 0; - int phoneme_flags = 0; + phoneme_flags = 0; NextItem(tSTRING); if (compile_phoneme) {