autotools: support building the mbrola phtrans files

This commit is contained in:
Reece H. Dunn
2014-08-14 10:44:18 +01:00
parent 560b214623
commit 55b2e01a6c
43 changed files with 233 additions and 5 deletions
+12 -1
View File
@@ -63,7 +63,7 @@ extern void DictionarySort(const char *dictname);
extern void init_z();
extern void CompilePhonemeData(void);
extern void CompileSampleRate(void);
extern void CompileMbrola();
extern void CompileMbrola(const char *mbrola_file = NULL);
extern void CompileIntonation();
extern void InitSpectrumDisplay();
extern void InitProsodyDisplay();
@@ -148,6 +148,17 @@ if(argc > 1)
CompilePhonemeData();
CompileIntonation();
}
else if(argc > 2 && strcmp(param,"--compile-mbrola")==0)
{
samplerate_native = samplerate = 22050;
LoadPhData(NULL);
if(LoadVoice("", 0) == NULL)
{
fprintf(stderr, "Failed to load default voice\n");
exit(1);
}
CompileMbrola(argv[2]);
}
exit(0);
}