tolk icon indicating copy to clipboard operation
tolk copied to clipboard

Add ZDSR support

Open ferryboy001 opened this issue 4 years ago • 3 comments

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

ferryboy001 avatar Jan 01 '22 11:01 ferryboy001

Could you link a download url to test?

On 1/1/22, ferryboy001 @.***> wrote:

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

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

  1. Output status

BOOL WINAPI IsSpeaking()

Return:

true: outputting

false: not yet output

  1. Stop output

void WINAPI StopSpeak()

Return: void

--

Reply to this email directly or view it on GitHub:

https://github.com/dkager/tolk/issues/20

You are receiving this because you are subscribed to this thread.

Message ID: @.***>

-- with best regards Beqa Gozalishvili Tell: +995593454005 Email: @.*** Web: https://gozaltech.org Skype: beqabeqa473 Telegram: https://t.me/gozaltech facebook: https://facebook.com/gozaltech twitter: https://twitter.com/beqabeqa473 Instagram: https://instagram.com/beqa.gozalishvili

beqabeqa473 avatar Jan 01 '22 15:01 beqabeqa473

This feature is supported on youth edition (plus+) and business edition of ZDSR, but the latest version of ZDSR is testing in a QQ group, and has no installer completely but an update patch. Can I send the patch package to your email? Or you can join the QQ group if you have a QQ account. Click here to join the group

ferryboy001 avatar Jan 01 '22 20:01 ferryboy001

I'm gonna implement it as I know the interface inside and out, but the developer of TOLK seems not not accept pull requests anymore, plus the build chain of TOLK is broken.

Nuno69 avatar Jan 03 '22 14:01 Nuno69