Difference between revisions of "Speecher Assistive Kit"

From Lazarus wiki
Jump to navigationJump to search
Line 1: Line 1:
 
'''sak''' is the Speecher Assistive Kit who transforms your applications into multi-language speaking assisted applications.
 
'''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.
 
Easy and independent, you do not have to change anything in your original code.
 +
For Linux 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 8: Line 12:
 
sak uses [http://espeak.sourceforge.net/ eSpeak] and [http://www.portaudio.com/ PortAudio] Open Source libraries.
 
sak uses [http://espeak.sourceforge.net/ eSpeak] and [http://www.portaudio.com/ PortAudio] Open Source libraries.
 
Of course the kit can be shared with other applications.
 
Of course the kit can be shared with other applications.
 +
  
 
Download it from gitHub here :
 
Download it from gitHub here :
[http://fredvs.github.io/sak/ sak Speecher Assistive Kit]
+
[http://fredvs.github.io/sak/ sak Speecher Assistive Kit]
 +
 
  
 
sak uses eSpeak who is GPL license.
 
sak uses eSpeak who is GPL license.
Line 33: Line 39:
 
In '''uses''' section of your program add :
 
In '''uses''' section of your program add :
  
For sak >
+
For '''sak''' >
 
'''uses
 
'''uses
 
'''sak''',...
 
'''sak''',...
 
'''
 
'''
  
For sak_dll >
+
For '''sak_dll''' >
 
'''uses
 
'''uses
 
'''sak_dll''',...
 
'''sak_dll''',...
 
'''
 
'''
 +
  
 
In your main program :
 
In your main program :
When you want your application becomes assistive call:
+
When you want your application becomes ''assistived'' call :
 +
 
 +
'''SAKLoadLib;'''
  
'''SAKLoadLib;'''
 
  
 
To unload it :
 
To unload it :
  
'''SAKUnLoadLib;'''
+
'''SAKUnLoadLib;'''
  
  
Line 59: Line 67:
 
language : langage code
 
language : langage code
  
Here example for Portugues/Brasil woman
+
Here example for Portugues/Brasil woman :
 
 
  
'''SAKSetVoice(female,'pt');'''
+
'''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;'''
  
  
'''SAKFreeLib;'''
+
----

Revision as of 19:40, 1 August 2013

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. For Linux 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 eSpeak executable and old Portaudio static 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 and uos_portaudio.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;


To unload it :

SAKUnLoadLib;


You may change the default gender and language.

gender : male or female

language : langage 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 :

SAKFreeLib;