-
Notifications
You must be signed in to change notification settings - Fork 50
Description
The latest version of ZDSR now supports TTS API named ZDSRAPI. The functions are defined in ZDSRAPI.dll.
Instruction:
ZDSR API (ZDSRAPI) is a set of interfaces provided by ZDSR.
32-bit interface ZDSRAPI.dll;
64-bit interface ZDSRAPI_x64.dll;
The application program puts the interface dll in its own application directory and calls it to obtain the related functions.
Name: ZDSRAPI
Version: 1
Voice control group User programs can send their own program information to the ZDSR for output.
-
Initialize the voice interface
int WINAPI InitTTS(int channelType, WCHAR* channelName)
Params:
[in] int channelType: 0 Screen Reader channel, 1 independent channel; independent channel not yet implemented
[in] WCHAR* channelName the name of the independent channel, pass NULL when channel type is 0.
Return Value:
0: Success
1: Version does not match
2: Screen Reader is not run yet
3: Already initialized, no need to call repeatedly -
Output text
void WINAPI Speak(WCHAR* text, BOOL bInterrupt)
Params:
[in] WCHAR* text: The text will be output (unicode)
[in] BOOL bInterrupt: whether to interrupt outputting
Return: void -
Output status
BOOL WINAPI IsSpeaking()
Return:
true: outputting
false: not yet output -
Stop output
void WINAPI StopSpeak()
Return: void