Home | Trees | Indices | Help |
---|
|
object --+ | TextToSpeechProvider
Abstraction for interacting with text-to-speech engines on Ubuntu, Mac, and (unimplemented:) Windows. Detects Festival and Cepstral engines on Ubuntu. Main public facilities: Speak an utterance immediately, given a string, and generate a .wav file from the text-to-speech conversion.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
[string] |
|
||
{string : [string]} |
|
||
|
|||
TextToSpeechEngine subclass |
|
||
TexToSpeechEngine |
|
||
TexToSpeechEngine |
|
||
|
|||
Inherited from |
|
|||
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Create a sound file with the result of turning the string passed in parameter 'text' to sound. The given voice engine and voice are used. If no destination file is provided, a temporary file is created, and its filename is returned after the file is closed. The caller bears responsibility for removing that temporary file.
|
Immediately speak the given string with the given voice on the given engine. If voice or engine are not provided, defaults are used.
|
Return True if any of the text-to-speech engines is currently synthesizing. Else return False; |
Returns an array of text-to-speech engine names that are available on the current machine. Exampele: ['festival', 'cepstral']
|
Returns a dictionary of all available voices for each text-to-speech engine. Keys are the engine names. Example:
The default voice for each engine is guaranteed to be the first in the voice lists. Order of the remaining voices is arbitrary.
|
From a text-to-speech engine name that may be None, return an engine object.
|
Try to sense the underlying OS. Then identify the available text-to-speech engines. Return the default engine to be used.
|
Called if underlying machine is Linux. Explores which text-to-speech engines are available. Festival is built into Ubuntu. Cepstral is a for-pay engine.
|
Called if underlying machine is Mac. Explores which text-to-speech engines are available.
|
Implements the Unix 'which' shell command, extended to consider not just $PATH, but also $PYTHONPATH when searching for an executable of the given name (the program parameter). $PATH is given preference; it is searched first.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 26 18:08:31 2012 | http://epydoc.sourceforge.net |