Browse Source

Create an espeak-ng version of espeak_Terminate.

master
Reece H. Dunn 9 years ago
parent
commit
d5fdd0eb92
3 changed files with 10 additions and 2 deletions
  1. 3
    0
      src/include/espeak-ng/espeak_ng.h
  2. 5
    0
      src/libespeak-ng/espeak_api.c
  3. 2
    2
      src/libespeak-ng/speech.c

+ 3
- 0
src/include/espeak-ng/espeak_ng.h View File

ESPEAK_NG_API espeak_ng_STATUS ESPEAK_NG_API espeak_ng_STATUS
espeak_ng_Synchronize(void); espeak_ng_Synchronize(void);


ESPEAK_NG_API espeak_ng_STATUS
espeak_ng_Terminate(void);

ESPEAK_NG_API espeak_ng_STATUS ESPEAK_NG_API espeak_ng_STATUS
espeak_ng_CompileDictionary(const char *dsource, espeak_ng_CompileDictionary(const char *dsource,
const char *dict_name, const char *dict_name,

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

return status_to_espeak_error(espeak_ng_Synchronize()); return status_to_espeak_error(espeak_ng_Synchronize());
} }


ESPEAK_API espeak_ERROR espeak_Terminate(void)
{
return status_to_espeak_error(espeak_ng_Terminate());
}

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

+ 2
- 2
src/libespeak-ng/speech.c View File

extern void FreePhData(void); extern void FreePhData(void);
extern void FreeVoiceList(void); extern void FreeVoiceList(void);


ESPEAK_API espeak_ERROR espeak_Terminate(void)
ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Terminate(void)
{ {
#ifdef USE_ASYNC #ifdef USE_ASYNC
fifo_stop(); fifo_stop();
FreePhData(); FreePhData();
FreeVoiceList(); FreeVoiceList();


return EE_OK;
return ENS_OK;
} }


ESPEAK_API const char *espeak_Info(const char **ptr) ESPEAK_API const char *espeak_Info(const char **ptr)

Loading…
Cancel
Save