shithub: flite

Download patch

ref: 96c9df6a4c4e64e9e1b7ca040eddb619a386663b
parent: 7c1994bd809aea4c535997c09f6703675986f98e
parent: 2c59c1aaab0b520d3504188987056ff3702352ca
author: Sai Krishna <srallaba@cs.cmu.edu>
date: Sun Jan 5 08:49:32 EST 2020

Merge pull request #38 from happyalu/master

bugfix: voice builds broken for non-grapheme voices by Alok

--- a/tools/Makefile.flite
+++ b/tools/Makefile.flite
@@ -69,6 +69,7 @@
 endif
 ifeq ($(CG_GRAPHEME),true)
 CSRCS += $(VOICENAME)_phoneset.c 
+EXTRA_CC_FLAGS += -DCG_GRAPHEME=1
 endif
 MCEPOBJS =
 LPCOBJS =
--- a/tools/VOICE_cg.c
+++ b/tools/VOICE_cg.c
@@ -48,7 +48,9 @@
 extern cst_cg_db __VOICENAME___cg_db;
 cst_voice *__VOICENAME___cg = NULL;
 
+#ifdef CG_GRAPHEME
 extern const cst_phoneset __VOICENAME___phoneset;
+#endif
 
 cst_voice *register___VOICENAME__(const char *voxdir)
 {
@@ -75,11 +77,13 @@
     flite_feat_set(vox->features,"lexicon",lexicon_val(lex));
     flite_feat_set(vox->features,"postlex_func",uttfunc_val(lex->postlex));
 
+#ifdef CG_GRAPHEME
     /* If grapheme link in grapheme specific info */
     if (feat_present(vox->features,"grapheme"))
     {
         flite_feat_set(vox->features,"phoneset",phoneset_val(&__VOICENAME___phoneset));
     }
+#endif
 
     /* No standard segment durations are needed as its done at the */
     /* HMM state level */