mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 22:07:12 +00:00
Create an espeak-ng version of espeak_Terminate.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user