Sign in Join
Wiki copytemporary

Speecher Assistive Kit: what changed

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

Title: Speecher Assistive Kit

OldNewLine
1+## About
2+
3+**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.
4+
5+For Linux, FreeBSD, macOS and Windows.
6+
7+You 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.
8+
9+sak uses the [eSpeak](http://espeak.sourceforge.net/) and [PortAudio](http://www.portaudio.com/) open source libraries.
10+
11+## Download
12+
13+GitHub: <https://github.com/fredvs/sak>
14+
15+## License
16+
17+sak uses eSpeak who is GPL license. So the license differs if you use eSpeak executable or eSpeak library.
18+
19+- **sak**: for all types of licenses, included commercial applications without source. It uses Speak executable and new PortAudio dynamic library.
20+- **sak_dll**: for applications with GPL Open Source licences. It uses eSpeak dynamic library and new PortAudio dynamic library.
21+
22+## Usage
23+
24+Copy the **sakit/** (or **sakit_dll/**) folder into your application-folder (from sak/ or sak_dll/, depend of the license you give...).
25+
26+- For **sak**, add **sak.pas** into your application-folder.
27+- For **sak_dll**, add **sak_dll.pas**, **uos_portaudio.pas** and **uos_espeak.pas** into your application-folder.
28+
29+In the "uses" section of your program add:
30+
31+- For **sak**: "uses sak"
32+- For **sak_dll**: "uses sak_dll"
33+
34+In your main program: When you want your application becomes *assistived* call:
35+
36+`SAKLoadLib();`
37+
38+This will seek in program-directory for /sakit/ (if not, in system for eSpeak).
39+
40+or
41+
42+`SAKLoadLib('/path/of/sakit/');`
43+
44+This loads some custom path.
45+
46+To unload it :
47+
48+`SAKUnLoadLib;`
49+
50+You may change the default gender and language.
51+
52+- gender: male or female
53+- language: language code
54+
55+Here example for Portugues/Brasil woman:
56+
57+`SAKSetVoice(female,'pt');`
58+
59+In addition you may add your own speech with :
60+
61+`SAKSay(Text: string);`
62+
63+When you close your application, call :
64+
65+`SAKUnLoadLib;`
66+
67+---
68+*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).*
69+Category: Accessibility
70+Category: Speech synthesis

Back to history