Difference between revisions of "Speecher Assistive Kit"

From Lazarus wiki
Jump to navigationJump to search
m
(10 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
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 lcl(Lazarus), fpGUI, MSEgui and console.
 +
 
 +
For Linux, freeBSD, Mac and Windows.
  
 
You do not need external libraries like at-spi, sapi, nor install anything in your system...
 
You do not need external libraries like at-spi, sapi, nor install anything in your system...
Line 15: Line 18:
  
 
Download it from gitHub here :
 
Download it from gitHub here :
  [http://fredvs.github.io/sak/ sak Speecher Assistive Kit]
+
  [https://github.com/fredvs/sak sak Speecher Assistive Kit]
  
  
Line 21: Line 24:
 
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.
Line 30: Line 33:
  
  
Copy the '''sakit''' (or '''sakit_dll''') folder into your application-folder (from sak or sak_dll, depend of the license you give...).
+
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''' and '''uos_portaudio.pas''' into your application-folder.
+
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.
 
For '''sak_dll''' > add '''sak_dll.pas''', '''uos_portaudio.pas''' and '''uos_espeak.pas''' into your application-folder.
Line 53: Line 56:
 
When you want your application becomes ''assistived'' call :
 
When you want your application becomes ''assistived'' call :
  
  '''SAKLoadLib;'''
+
  '''SAKLoadLib();''' => This will seek in program-directory for /sakit/ (if not, in system for eSpeak).
 +
 
 +
or
 +
 
 +
'''SAKLoadLib('/path/of/sakit/');''' => To load custom path of /sakit/ folder.
  
  
Line 65: Line 72:
 
gender : male or female
 
gender : male or female
  
language : langage code
+
language : language code
  
 
Here example for Portugues/Brasil woman :
 
Here example for Portugues/Brasil woman :
Line 79: Line 86:
 
When you close your application, call :
 
When you close your application, call :
  
  '''SAKFreeLib;'''
+
  '''SAKUnLoadLib;'''
  
  

Revision as of 20:25, 29 June 2015

sak is the Speecher Assistive Kit who 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 lcl(Lazarus), fpGUI, MSEgui and console.

For Linux, freeBSD, Mac and Windows.

You do not need external libraries like at-spi, sapi, nor install anything in your system...

All is included in the kit (+- 1 mega). sak uses eSpeak and PortAudio Open Source libraries. Of course the kit can be shared with other applications.


Download it from gitHub here :

sak Speecher Assistive Kit


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.


How to use it ?


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 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/'); => To load custom path of /sakit/ folder.


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;