mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
Merge pull request #37 from michaelDCurran/allowNULLLogInCompilationFunctions
Allow compilePhonemeData and compileIntonations to be called with a NULL log argument
This commit is contained in:
@@ -3567,6 +3567,7 @@ int LookupEnvelopeName(const char *name)
|
||||
|
||||
espeak_ng_STATUS espeak_ng_CompileIntonation(FILE *log)
|
||||
{
|
||||
if(!log) log=stderr;
|
||||
int ix;
|
||||
char *p;
|
||||
char c;
|
||||
@@ -3867,6 +3868,7 @@ espeak_ng_STATUS espeak_ng_CompileIntonation(FILE *log)
|
||||
|
||||
espeak_ng_STATUS espeak_ng_CompilePhonemeData(long rate, FILE *log)
|
||||
{
|
||||
if(!log) log=stderr;
|
||||
WavegenInit(rate, 0);
|
||||
WavegenSetVoice(voice);
|
||||
return CompilePhonemeData2("phonemes", log);
|
||||
|
||||
Reference in New Issue
Block a user