mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
26 lines
755 B
C++
26 lines
755 B
C++
|
#ifndef __SPEECHHLP_H__
|
||
|
#define __SPEECHHLP_H__
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
typedef struct _SpeechHelper *SpeechHelper;
|
||
|
typedef bool (*EnumerateCallback)(void *token, const wchar_t *id, const wchar_t *name, void *userData);
|
||
|
|
||
|
SpeechHelper speechCreate(const wchar_t *engineId);
|
||
|
void speechDestroy(SpeechHelper sp);
|
||
|
bool speechAvailable(SpeechHelper sp);
|
||
|
void speechEnumerateAvailableEngines(EnumerateCallback callback, void *userData);
|
||
|
const wchar_t * speechEngineId(SpeechHelper sp);
|
||
|
const wchar_t * speechEngineName(SpeechHelper sp);
|
||
|
bool speechTell(SpeechHelper sp, const wchar_t *text);
|
||
|
bool speechTellFinished(SpeechHelper sp);
|
||
|
bool speechSay(SpeechHelper sp, const wchar_t *text);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif // __SPEECHHLP_H__
|