From 901bc0d1ba9968c5503314ca6598910b5db4b048 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Mon, 30 Jan 2017 20:27:10 +0000 Subject: [PATCH] Allow 'apr liquid' to be used together in a phoneme. --- src/libespeak-ng/compiledata.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libespeak-ng/compiledata.c b/src/libespeak-ng/compiledata.c index f3ea92e4..ba0b534d 100644 --- a/src/libespeak-ng/compiledata.c +++ b/src/libespeak-ng/compiledata.c @@ -2020,8 +2020,12 @@ int CompilePhoneme(int compile_phoneme) switch (item_type) { case tPHONEME_TYPE: - if (phoneme_out->type != phINVALID) - error("More than one phoneme type: %s", item_string); + if (phoneme_out->type != phINVALID) { + if (phoneme_out->type == phFRICATIVE && keyword == phLIQUID) + ; // apr liquid => ok + else + error("More than one phoneme type: %s", item_string); + } phoneme_out->type = keyword; break; case tPHONEME_FLAG: