Home | Trees | Index | Help |
|
---|
Package pyTTS :: Module sapi :: Class SynthAndOutput |
|
object
--+ |Base
--+ | SynthAndOutput
Method Summary | |
---|---|
Initialize an instance. | |
Cleans up COM interfaces. | |
boolean |
Return is the engine speaking right now or not? |
Pauses a speech stream to be resumed later. | |
Resumes a previously paused stream. | |
Skips a number of items in a speech stream. | |
Speaks text with the optional flag modifiers. | |
Speaks the contents of memory block with the optional flag modifiers. | |
Speaks the content of a wave file on disk with the optional flag modifiers. | |
SAPI.SpMemoryStream |
Speaks the given text to a memory buffer with the optional flag modifiers. |
Speaks the given text to a file on disk with the optional flag modifiers. | |
Stop all speech immediately. | |
Register a callback for all types of event. | |
Register a callback for this type of event. | |
Register a callback for this type of event. | |
Register a callback for this type of event. | |
Register a callback for this type of event. | |
Register a callback for this type of event. | |
Register a callback for this type of event. | |
Register a callback for this type of event. | |
Register a callback for this type of event. | |
Register a callback for this type of event. | |
Register a callback for this type of event. | |
Inherited from Base :
CheckFlags ,
GetRate ,
GetVoice ,
GetVoiceNames ,
GetVoices ,
GetVolume ,
Repeat ,
SetOutputFormat ,
SetRate ,
SetVoice ,
SetVoiceByName ,
SetVolume
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Property Summary | |
---|---|
OnAnyEvent | |
OnAudioLevel | |
OnBookmark | |
OnEndStream | |
OnEnginePrivate | |
OnPhoneme | |
OnSentence | |
OnStartStream | |
OnViseme | |
OnVoiceChange | |
OnWord | |
Inherited from Base :
Rate ,
Voice ,
Volume
|
Instance Variable Summary | |
---|---|
? | events : COM interface with support for events |
Inherited from Base :
format ,
last_speech ,
speech ,
valid_flags ,
voices
|
Method Details |
---|
__init__(self)
Initialize an instance.
|
__del__(self)
Cleans up COM interfaces.
|
IsSpeaking(self)
|
Pause(self)Pauses a speech stream to be resumed later. |
Resume(self)Resumes a previously paused stream. |
Skip(self, num_items, type_items='Sentence')Skips a number of items in a speech stream.
|
Speak(self, text, *flags)Speaks text with the optional flag modifiers. Text can include XML commands.
|
SpeakFromMemory(self, mem_stream, *flags)Speaks the contents of memory block with the optional flag modifiers. Events will be fired appropriately.
|
SpeakFromWave(self, file, *flags)Speaks the content of a wave file on disk with the optional flag modifiers. If the wave file was created by SAPI and includes events, those events will be fired.
|
SpeakToMemory(self, text, *flags)Speaks the given text to a memory buffer with the optional flag modifiers.
|
SpeakToWave(self, file, text, *flags)Speaks the given text to a file on disk with the optional flag modifiers.
|
Stop(self)Stop all speech immediately. |
SubscribeAll(self, func)Register a callback for all types of event.
|
SubscribeAudioLevel(self, func)Register a callback for this type of event.
|
SubscribeBookmark(self, func)Register a callback for this type of event.
|
SubscribeEndStream(self, func)Register a callback for this type of event.
|
SubscribeEnginePrivate(self, func)Register a callback for this type of event.
|
SubscribePhoneme(self, func)Register a callback for this type of event.
|
SubscribeSentence(self, func)Register a callback for this type of event.
|
SubscribeStartStream(self, func)Register a callback for this type of event.
|
SubscribeViseme(self, func)Register a callback for this type of event.
|
SubscribeVoiceChange(self, func)Register a callback for this type of event.
|
SubscribeWord(self, func)Register a callback for this type of event.
|
Property Details |
---|
OnAnyEvent
|
OnAudioLevel
|
OnBookmark
|
OnEndStream
|
OnEnginePrivate
|
OnPhoneme
|
OnSentence
|
OnStartStream
|
OnViseme
|
OnVoiceChange
|
OnWord
|
Instance Variable Details |
---|
eventsCOM interface with support for events
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Feb 18 13:59:27 2005 | http://epydoc.sf.net |