Difference between revisions of "Speecher Assistive Kit"

From Lazarus wiki
Jump to navigationJump to search
m
m (Kai Burghardt moved page sak to Speecher Assistive Kit: less cryptic page title)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''sak''' is the Speecher Assistive Kit who transforms your applications into multi-language speaking assisted applications.
+
==About==
 
+
'''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.
 
Easy and independent, you do not have to change anything in your original code.
For Linux and Windows.
+
Compatible with Lazarus, fpGUI, MSEgui and console.
  
You do not need external libraries like at-spi, sapi, nor install anything in your system...
+
For Linux, FreeBSD, macOS and Windows.
  
All is included in the kit (+- 1 mega).
+
You do not need external libraries like at-spi, sapi, nor do you need to install anything in your system.
sak uses [http://espeak.sourceforge.net/ eSpeak] and [http://www.portaudio.com/ PortAudio] Open Source libraries.
+
Everything is included in the kit.
Of course the kit can be shared with other applications.
 
  
 +
sak uses the [http://espeak.sourceforge.net/ eSpeak] and [http://www.portaudio.com/ PortAudio] open source libraries.
  
Download it from gitHub here :
+
==Download==
[http://fredvs.github.io/sak/ sak Speecher Assistive Kit]
+
GitHub: https://github.com/fredvs/sak
 
 
  
 +
==License==
 
sak uses eSpeak who is GPL license.
 
sak uses eSpeak who is GPL license.
 
So the license differs if you use eSpeak executable or eSpeak library.
 
So the license differs if you use eSpeak executable or eSpeak library.
  
'''sak''' > for all types of licenses, included commercial applications without source.  It uses eSpeak executable and old Portaudio static library.
+
* '''sak''': for all types of licenses, included commercial applications without source.  It uses Speak executable and new PortAudio dynamic library.
 +
* '''sak_dll''': for applications with GPL Open Source licences.  It uses eSpeak dynamic library and new PortAudio dynamic library.
  
'''sak_dll''' > for applications with GPL Open Source licences.  It uses eSpeak dynamic library and new Portaudio dynamic library.
+
==Usage==
  
 +
Copy the '''sakit/''' (or '''sakit_dll/''') folder into your application-folder (from sak/ or sak_dll/, depend of the license you give...).
  
 +
* For '''sak''', add '''sak.pas''' into your application-folder.
 +
* For '''sak_dll''', add '''sak_dll.pas''', '''uos_portaudio.pas''' and '''uos_espeak.pas''' into your application-folder.
  
''How to use it ?''
+
In the "uses" section of your program add:
  
 +
* For '''sak''': "uses sak"
 +
* For '''sak_dll''': "uses sak_dll"
  
Copy the '''sakit''' (or '''sakit_dll''') folder into your application-folder (from sak or sak_dll, depend of the license you give...).
+
In your main program:
 +
When you want your application becomes ''assistived'' call:
  
For '''sak''' > add '''sak.pas''' and '''uos_portaudio.pas''' into your application-folder.
+
SAKLoadLib();
  
For '''sak_dll''' > add '''sak_dll.pas''', '''uos_portaudio.pas''' and '''uos_espeak.pas''' into your application-folder.
+
This will seek in program-directory for /sakit/ (if not, in system for eSpeak).
  
 +
or
  
In '''uses''' section of your program add :
+
SAKLoadLib('/path/of/sakit/');
  
For '''sak''' >
+
This loads some custom path.
'''uses
 
'''sak''',...
 
'''
 
 
 
For '''sak_dll''' >
 
'''uses
 
'''sak_dll''',...
 
'''
 
 
 
 
 
In your main program :
 
When you want your application becomes ''assistived'' call :
 
 
 
'''SAKLoadLib;'''
 
  
  
 
To unload it :
 
To unload it :
  
  '''SAKUnLoadLib;'''
+
  SAKUnLoadLib;
  
  
 
You may change the default gender and language.
 
You may change the default gender and language.
  
gender : male or female
+
* gender: male or female
 
+
* language: language code
language : langage code
 
 
 
Here example for Portugues/Brasil woman :
 
  
'''SAKSetVoice(female,'pt');'''
+
Here example for Portugues/Brasil woman:
  
 +
SAKSetVoice(female,'pt');
  
 
In addition you may add your own speech with :
 
In addition you may add your own speech with :
  
  '''SAKSay(Text: string);'''
+
  SAKSay(Text: string);
 
 
  
 
When you close your application, call :
 
When you close your application, call :
  
  '''SAKFreeLib;'''
+
  SAKUnLoadLib;
 
 
 
 
----
 
  
 
[[Category:Accessibility]]
 
[[Category:Accessibility]]
 
[[Category:Speech synthesis]]
 
[[Category:Speech synthesis]]

Latest revision as of 18:33, 6 August 2022

About

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.

For Linux, FreeBSD, macOS and Windows.

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.

sak uses the eSpeak and PortAudio open source libraries.

Download

GitHub: https://github.com/fredvs/sak

License

sak uses eSpeak who is GPL license. So the license differs if you use eSpeak executable or eSpeak library.

  • sak: for all types of licenses, included commercial applications without source. It uses Speak executable and new PortAudio dynamic library.
  • sak_dll: for applications with GPL Open Source licences. It uses eSpeak dynamic library and new PortAudio dynamic library.

Usage

Copy the sakit/ (or sakit_dll/) folder into your application-folder (from sak/ or sak_dll/, depend of the license you give...).

  • For sak, add sak.pas into your application-folder.
  • For sak_dll, add sak_dll.pas, uos_portaudio.pas and uos_espeak.pas into your application-folder.

In the "uses" section of your program add:

  • For sak: "uses sak"
  • For sak_dll: "uses sak_dll"

In your main program: When you want your application becomes assistived call:

SAKLoadLib();

This will seek in program-directory for /sakit/ (if not, in system for eSpeak).

or

SAKLoadLib('/path/of/sakit/');

This loads some custom path.


To unload it :

SAKUnLoadLib;


You may change the default gender and language.

  • gender: male or female
  • language: language code

Here example for Portugues/Brasil woman:

SAKSetVoice(female,'pt');

In addition you may add your own speech with :

SAKSay(Text: string);

When you close your application, call :

SAKUnLoadLib;