Home | Trees | Index | Help |
|
---|
Package pyTTS :: Module sapi :: Class Base |
|
object
--+
|
Base
SynthAndOutput
,
SynthOnly
Method Summary | |
---|---|
Initialize an instance. | |
Cleans up COM references. | |
integer |
Validates speech flags. |
integer |
Return rate of speech, typically in the range of [-10, 10] |
string |
Return name of the currently selected voice |
list |
Return names of supported voices on this system |
GetVoices(self)
| |
integer |
Return current voice volume in range [0,100] |
Repeats the last text spoken using the provided flags. | |
Changes the output stream format. | |
Sets the current rate of speech. | |
SetVoice(self,
obj)
| |
Sets the given voice to be the active voice. | |
Sets the current voice volume. | |
Virtual method. | |
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Property Summary | |
---|---|
Rate | |
Voice | |
Volume |
Instance Variable Summary | |
---|---|
integer? | format : Current speech format |
string | last_speech : Last text spoken |
SAPI.SpVoice | speech : COM interface to the speech engine |
integer | valid_flags : Allowed modifiers to speech functions |
dictionary | voices : Supported voices |
Method Details |
---|
__init__(self)
Initialize an instance.
|
__del__(self)
Cleans up COM references.
|
CheckFlags(self, flags)Validates speech flags. Reduces the list of flags to a single sum that can be passed to the engine.
|
GetRate(self)
|
GetVoice(self)
|
GetVoiceNames(self)
|
GetVolume(self)
|
Repeat(self, *flags)Repeats the last text spoken using the provided flags.
|
SetOutputFormat(self, rate, bits, channels)Changes the output stream format.
|
SetRate(self, rate)Sets the current rate of speech.
|
SetVoiceByName(self, voice_name)Sets the given voice to be the active voice.
|
SetVolume(self, vol)Sets the current voice volume.
|
Speak(self, text, *flags)Virtual method. Stores text as last spoken text.
|
Property Details |
---|
Rate |
Voice
|
Volume |
Instance Variable Details |
---|
formatCurrent speech format
|
last_speechLast text spoken
|
speechCOM interface to the speech engine
|
valid_flagsAllowed modifiers to speech functions
|
voicesSupported voices
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Feb 18 13:59:28 2005 | http://epydoc.sf.net |