Modules | Files | Inheritance Tree | Inheritance Graph | Name Index
module GNOME::Speech::Recognition
interface RecognizerEvent
Files: GNOME_Speech.idl
GNOME-Speech-Recognition-RecognizerEvent-inheritance GNOME-Speech-EngineEvent.html GNOME-Speech-SpeechEvent.html GNOME-Speech-SpeechObject.html Bonobo-Unknown.html
Operations Summary:
GrammarExceptionValuegetGrammarExceptionValue()
 voidinitWithRecognizerAndState(in Engine source, in long id, in long long oldEngineState, in long long newEngineState, in GrammarExceptionValue grammarExceptionValue)

Consts Inherited from EngineEvent
ENGINE_ALLOCATED, ENGINE_DEALLOCATED, ENGINE_ALLOCATING_RESOURCES, ENGINE_DEALLOCATING_RESOURCES, ENGINE_PAUSED, ENGINE_RESUMED

Operations Inherited from EngineEvent
initWithEngineAndState, getNewEngineState, getOldEngineState

Operations Inherited from SpeechEvent
init, initWithId, getId, getSource, paramString, toString

Operations Inherited from Bonobo::Unknown
ref, unref, queryInterface

Operation Details:
GrammarExceptionValue getGrammarExceptionValue()

Returns non-null for a CHANGES_COMMITTED event if an error is found in the grammar definition. The exception serves the same functional role as the GrammarException thrown on the commitChanges method.

Return:
the grammar exception value.
See Also:
Recognizer#commitChanges


 void initWithRecognizerAndState(in Engine source, in long id, in long long oldEngineState, in long long newEngineState, in GrammarExceptionValue grammarExceptionValue)

Constructs a RecognizerEvent with a specified event source, event identifier, old and new states, and optionally a GrammarExceptionValue for a CHANGES_COMMITTED event.

Parameters:
source - the recognizer that issued the event.
id - the identifier for the event type.
oldEngineState - engine state prior to this event.
newEngineState - engine state following this event.
grammarExceptionValue - non-null if an error is detected during CHANGES_COMMITTED.