shithub: flite

Download patch

ref: 826ecd8f682bf7396ea9ca0520f589da626ef261
parent: a7ec22a8ea9f6480ae3e7e15710c991f80f79dcd
author: Alan W Black <awb@cs.cmu.edu>
date: Thu Nov 16 04:16:11 EST 2017

add guard for eng_shared feat

--- a/src/cg/cst_cg_dump_voice.c
+++ b/src/cg/cst_cg_dump_voice.c
@@ -298,10 +298,11 @@
     if (get_param_string(v->features,"english_data",NULL))
         cst_cg_write_voice_feature(fd, "english_data", 
                                    get_param_string(v->features,"english_data","unknown"));
-    // Sai Krishna 07 July 2017 
-    // Flag to use shared vs mapped  phoneset. Storing as string
-    cst_cg_write_voice_feature(fd, "eng_shared", 
-                          get_param_string(v->features,"eng_shared","0"));
+    /* Sai Krishna 07 July 2017  */
+    /* Flag to use shared vs mapped eng phoneset, for bilingual voices */
+    if (get_param_string(v->features,"eng_shared",NULL))
+        cst_cg_write_voice_feature(fd, "eng_shared", 
+                         get_param_string(v->features,"eng_shared","0"));
 
     /* These three must be saved as string features
        (though are interpreted as floats) */