Move the espeak_CompileDictionary implementation to espeak_api.c.

This commit is contained in:
Reece H. Dunn
2016-01-02 13:57:00 +00:00
parent 71482ec913
commit 8b32702627
2 changed files with 12 additions and 6 deletions
+12 -1
View File
@@ -22,8 +22,14 @@
#include "espeak_ng.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)
@@ -62,4 +68,9 @@ ESPEAK_API int espeak_Initialize(espeak_AUDIO_OUTPUT output_type, int buf_length
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
-5
View File
@@ -871,11 +871,6 @@ ESPEAK_API const char *espeak_TextToPhonemes(const void **textptr, int textmode,
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)
{
#ifdef USE_ASYNC