Browse Source

Move the espeak_CompileDictionary implementation to espeak_api.c.

master
Reece H. Dunn 10 years ago
parent
commit
8b32702627
2 changed files with 12 additions and 6 deletions
  1. 12
    1
      src/libespeak-ng/espeak_api.c
  2. 0
    5
      src/libespeak-ng/speech.c

+ 12
- 1
src/libespeak-ng/espeak_api.c View File

#include "espeak_ng.h" #include "espeak_ng.h"


#include <stdlib.h> #include <stdlib.h>
#if HAVE_STDINT_H
#include <stdint.h>
#endif


extern int option_phoneme_events; // from translate.h
#include "speech.h"
#include "phoneme.h"
#include "synthesize.h"
#include "translate.h"


#pragma GCC visibility push(default) #pragma GCC visibility push(default)


return espeak_ng_GetSampleRate(); return espeak_ng_GetSampleRate();
} }


ESPEAK_API void espeak_CompileDictionary(const char *path, FILE *log, int flags)
{
espeak_ng_CompileDictionary(path, dictionary_name, log, flags);
}

#pragma GCC visibility pop #pragma GCC visibility pop

+ 0
- 5
src/libespeak-ng/speech.c View File

return GetTranslatedPhonemeString(phonememode); return GetTranslatedPhonemeString(phonememode);
} }


ESPEAK_API void espeak_CompileDictionary(const char *path, FILE *log, int flags)
{
espeak_ng_CompileDictionary(path, dictionary_name, log, flags);
}

ESPEAK_API espeak_ERROR espeak_Cancel(void) ESPEAK_API espeak_ERROR espeak_Cancel(void)
{ {
#ifdef USE_ASYNC #ifdef USE_ASYNC

Loading…
Cancel
Save