JSAPI 2.0

javax.speech.recognition
Interface ResultListener

All Superinterfaces:
SpeechEventListener

public interface ResultListener
extends SpeechEventListener

The listener interface for ResultEvents associated with a Result. A ResultListener may be attached to any of three entities:

The events are issued to the listeners in the order of most specific to least specific: ResultListeners attached to the Result are notified first, then listeners attached to the matched Grammar, and finally to listeners attached to the Recognizer.

A single ResultListener may be attached to multiple objects or types of objects (Recognizer, Grammar or Result), and multiple ResultListeners may be attached to a single object.

The source for all ResultEvents issued to a ResultListener is the Result that generated the event. The Result documentation provides more detail.

See Also:
ResultEvent, Result, addResultListener, Grammar, addResultListener, Recognizer, addResultListener

Method Summary
 void resultUpdate(ResultEvent event)
          Method called back to indicate a Result update.
 

Method Detail

resultUpdate

void resultUpdate(ResultEvent event)
Method called back to indicate a Result update.

Parameters:
event - the ResultEvent
See Also:
Result

JSAPI 2.0

JavaTM Speech API 2.0, Final Release v2.0.6.
© 2008, Conversay and Sun Microsystems.

Free Web Hosting