Browse Source

Move the espeak_CompileDictionary implementation to espeak_api.c.

master
Reece H. Dunn 9 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

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

+ 0
- 5
src/libespeak-ng/speech.c 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

Loading…
Cancel
Save