Skip to content

Add ZDSR support #20

@ferryboy001

Description

@ferryboy001

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.

  1. 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

  2. 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

  3. Output status
    BOOL WINAPI IsSpeaking()
    Return:
    true: outputting
    false: not yet output

  4. Stop output
    void WINAPI StopSpeak()
    Return: void

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions