mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-15 01:54:46 +00:00
Move the espeak_CompileDictionary implementation to espeak_api.c.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user