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

@@ -103,6 +103,9 @@ espeak_ng_Cancel(void);
ESPEAK_NG_API espeak_ng_STATUS
espeak_ng_Synchronize(void);

ESPEAK_NG_API espeak_ng_STATUS
espeak_ng_Terminate(void);

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

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

@@ -151,6 +151,11 @@ ESPEAK_API espeak_ERROR espeak_Synchronize(void)
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_ng_CompileDictionary(path, dictionary_name, log, flags);

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

@@ -851,7 +851,7 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Synchronize(void)
extern void FreePhData(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
fifo_stop();
@@ -871,7 +871,7 @@ ESPEAK_API espeak_ERROR espeak_Terminate(void)
FreePhData();
FreeVoiceList();

return EE_OK;
return ENS_OK;
}

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

Loading…
Cancel
Save