mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-30 14:22:29 +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)
|
espeak_ng_STATUS espeak_ng_CompileIntonation(FILE *log)
|
||||||
{
|
{
|
||||||
|
if(!log) log=stderr;
|
||||||
int ix;
|
int ix;
|
||||||
char *p;
|
char *p;
|
||||||
char c;
|
char c;
|
||||||
@@ -3867,6 +3868,7 @@ espeak_ng_STATUS espeak_ng_CompileIntonation(FILE *log)
|
|||||||
|
|
||||||
espeak_ng_STATUS espeak_ng_CompilePhonemeData(long rate, FILE *log)
|
espeak_ng_STATUS espeak_ng_CompilePhonemeData(long rate, FILE *log)
|
||||||
{
|
{
|
||||||
|
if(!log) log=stderr;
|
||||||
WavegenInit(rate, 0);
|
WavegenInit(rate, 0);
|
||||||
WavegenSetVoice(voice);
|
WavegenSetVoice(voice);
|
||||||
return CompilePhonemeData2("phonemes", log);
|
return CompilePhonemeData2("phonemes", log);
|
||||||
|
|||||||
Reference in New Issue
Block a user