Browse Source

Allow compilePhonemeData and compileIntonations to be called with a NULL log argument. If so, log is set to stderr.

master
Michael Curran 9 years ago
parent
commit
5353e125dc
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/libespeak-ng/compiledata.c

+ 2
- 0
src/libespeak-ng/compiledata.c View File

@@ -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);

Loading…
Cancel
Save