EngineEvent
notifies changes in state of a speech synthesis
or recognition engine. EngineEvents
are issued to each
EngineListener
attached to an engine. The
RecognizerEvent
and SynthesizerEvent
classes both extend #EngineEvent to provide specific events for
recognizers and synthesizers.
EngineListener
RecognizerEvent
SynthesizerEvent
Consts Summary: | |
long | ENGINE_ALLOCATED = 501 |
long | ENGINE_DEALLOCATED = 502 |
long | ENGINE_ALLOCATING_RESOURCES = 503 |
long | ENGINE_DEALLOCATING_RESOURCES = 504 |
long | ENGINE_PAUSED = 505 |
long | ENGINE_RESUMED = 506 |
Operations Summary: | |
void | initWithEngineAndState(in Engine source, in long id, in long long oldEngineState, in long long newEngineState) |
long | getNewEngineState() |
long | getOldEngineState() |
Operations Inherited from SpeechEvent | |
init, initWithId, getId, getSource, paramString, toString |
Operations Inherited from Bonobo::Unknown | |
ref, unref, queryInterface |
Const Details: |
Identifier for event issued when engine allocation is complete.
The ALLOCATED
flag of the newEngineState
is set.
getNewEngineState
SpeechEvent#getId
Engine#allocate
EngineListener#engineAllocated
Identifier for event issued when engine deallocation is complete.
The DEALLOCATED
flag of the
newEngineState
is set.
getNewEngineState
SpeechEvent#getId
Engine#allocate
EngineListener#engineDeallocated
Identifier for event issued when engine allocation has commenced.
The ALLOCATING_RESOURCES
flag of the
newEngineState
is set.
getNewEngineState
SpeechEvent#getId
Engine#allocate
EngineListener#engineAllocatingResources
Identifier for event issued when engine deallocation has commenced.
The DEALLOCATING_RESOURCES
flag of the
newEngineState
is set.
getNewEngineState
SpeechEvent#getId
Engine#allocate
EngineListener#engineDeallocatingResources
Identifier for event issued when engine is paused.
The PAUSED
flag of the newEngineState
is set.
getNewEngineState
SpeechEvent#getId
Engine#pause
EngineListener#enginePaused
Identifier for event issued when engine is resumed.
The RESUMED
flag of the newEngineState
is set.
getNewEngineState
SpeechEvent#getId
Engine#resume
EngineListener#engineResumed
Operation Details: |
Constructs an EngineEvent
with an event identifier,
old engine state and new engine state.
Engine#getEngineState
Return the state following this EngineEvent
.
The value matches the getEngineState
method.
EngineEvent
. Engine#getEngineState
Return the state prior to this EngineEvent
.
The value matches the getEngineState
method.
EngineEvent
. Engine#getEngineState