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