Sign in Join
Wiki copytemporary

Speecher Assistive Kit: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## About
22
33**sak** is a Speecher Assistive Kit which transforms your applications into multi-language speaking assisted applications. Easy and independent, you do not have to change anything in your original code. Compatible with Lazarus, fpGUI, MSEgui and console.
44
55For Linux, FreeBSD, macOS and Windows.
66
77You do not need external libraries like at-spi, sapi, nor do you need to install anything in your system. Everything is included in the kit.
88
99sak uses the [eSpeak](http://espeak.sourceforge.net/) and [PortAudio](http://www.portaudio.com/) open source libraries.
1010
1111## Download
1212
1313GitHub: <https://github.com/fredvs/sak>
1414
1515## License
1616
1717sak uses eSpeak who is GPL license. So the license differs if you use eSpeak executable or eSpeak library.
1818
1919- **sak**: for all types of licenses, included commercial applications without source. It uses Speak executable and new PortAudio dynamic library.
2020- **sak_dll**: for applications with GPL Open Source licences. It uses eSpeak dynamic library and new PortAudio dynamic library.
2121
2222## Usage
2323
2424Copy the **sakit/** (or **sakit_dll/**) folder into your application-folder (from sak/ or sak_dll/, depend of the license you give...).
2525
2626- For **sak**, add **sak.pas** into your application-folder.
2727- For **sak_dll**, add **sak_dll.pas**, **uos_portaudio.pas** and **uos_espeak.pas** into your application-folder.
2828
2929In the "uses" section of your program add:
3030
3131- For **sak**: "uses sak"
3232- For **sak_dll**: "uses sak_dll"
3333
3434In your main program: When you want your application becomes *assistived* call:
3535
36-`SAKLoadLib();`
36+```text
37+SAKLoadLib();
38+```
3739
3840This will seek in program-directory for /sakit/ (if not, in system for eSpeak).
3941
4042or
4143
42-`SAKLoadLib('/path/of/sakit/');`
44+```text
45+SAKLoadLib('/path/of/sakit/');
46+```
4347
4448This loads some custom path.
4549
4650To unload it :
4751
48-`SAKUnLoadLib;`
52+```text
53+SAKUnLoadLib;
54+```
4955
5056You may change the default gender and language.
5157
5258- gender: male or female
5359- language: language code
5460
5561Here example for Portugues/Brasil woman:
5662
57-`SAKSetVoice(female,'pt');`
63+```text
64+SAKSetVoice(female,'pt');
65+```
5866
5967In addition you may add your own speech with :
6068
61-`SAKSay(Text: string);`
69+```text
70+SAKSay(Text: string);
71+```
6272
6373When you close your application, call :
6474
65-`SAKUnLoadLib;`
75+```text
76+SAKUnLoadLib;
77+```
6678
6779---
6880*From the Free Pascal wiki, page "Speecher Assistive Kit", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
6981Category: Accessibility
7082Category: Speech synthesis

Back to history