FreeTTS is an open-source speech synthesis engine written entirely in the Java programming language. It is available for download at http://freetts.sourceforge.net/docs/index.php.
Steel uses the Java Runtime Environment (JRE) to interface with the FreeTTS engine. If JRE is not installed on your computer, you can download it at http://java.com/en/download/index.jsp.
class steel.FreeTTS()
Wrapper for the FreeTTS text-to-speech engine.
available_voices()
Returns a list of all available FreeTTS voices.
get( attribute )
Returns the value of the specified attribute.
Recognized attributes are: voice.
set( attribute, value )
Sets the specified attribute to the given value.
Recognized attributes are: voice.
speak( text, interrupt=False )
Speaks the given string of text.
If the interrupt flag is True, then all current speech will halt before speaking the new phrase. Otherwise, the speech
will be added to a queue, and spoken once all previous speech is completed.
speak_to_wav( text, path )
Speaks the given string of text to the specified .wav file.
stop()
Halts any current speech events.
Speak text:
>>> import steel
>>> engine = steel.FreeTTS()
>>> engine.speak('Hello world!')
Change voices:
>>> import steel
>>> engine = steel.FreeTTS()
>>> print engine.available_voices()
['alan','kevin','kevin16']
>>> engine.set('voice','kevin16')