@@ -89,8 +89,10 @@ static const char *help_text =
8989 "\t Compile pronunciation rules and dictionary from the current\n"
9090 "\t directory, including line numbers for use with -X.\n"
9191 "\t <voice name> specifies the language\n"
92+ #if USE_MBROLA
9293 "--compile-mbrola=<voice name>\n"
9394 "\t Compile an MBROLA voice\n"
95+ #endif
9496 "-- compile - intonations \n "
9597 " \t Compile the intonation data \n "
9698 " -- compile - phonemes = < phsource - dir > \n "
@@ -323,7 +325,9 @@ int main(int argc, char **argv)
323325 { "version" , no_argument , 0 , 0x10b },
324326 { "sep" , optional_argument , 0 , 0x10c },
325327 { "tie" , optional_argument , 0 , 0x10d },
328+ #if USE_MBROLA
326329 { "compile-mbrola" , optional_argument , 0 , 0x10e },
330+ #endif
327331 { "compile-intonations" , no_argument , 0 , 0x10f },
328332 { "compile-phonemes" , optional_argument , 0 , 0x110 },
329333 { "load" , no_argument , 0 , 0x111 },
@@ -536,6 +540,7 @@ int main(int argc, char **argv)
536540 if (phonemes_separator == 'z' )
537541 phonemes_separator = 0x200d ; // ZWJ
538542 break ;
543+ #if USE_MBROLA
539544 case 0x10e : // --compile-mbrola
540545 {
541546 espeak_ng_InitializePath (data_path );
@@ -548,6 +553,7 @@ int main(int argc, char **argv)
548553 }
549554 return EXIT_SUCCESS ;
550555 }
556+ #endif
551557 case 0x10f : // --compile-intonations
552558 {
553559 espeak_ng_InitializePath (data_path );
0 commit comments