mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-09 07:52:27 +00:00
autotools: support building the mbrola phtrans files
This commit is contained in:
+12
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user