Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Interface javax.speech.EngineListener

Subinterfaces:
RecognizerListener, SynthesizerListener
Implementing Classes:
EngineAdapter

public abstract interface EngineListener
extends EventListener
Interface defining methods to be called when state-change events for a speech engine occur. To receive engine events an application attaches a listener by calling the addEngineListener method of an Engine. A listener is removed by a call to the removeEngineListener method.

The event dispatch policy is defined in the documentation for the SpeechEvent class.

This interface is extended by the RecognizerListener and SynthesizerListener interfaces to handle the specialized events of speech recognizers and synthesizers.

A trivial implementation of EngineListener is provided by the EngineAdapter class. RecognizerAdapter and SynthesizerAdapter classes are also available.

See Also:
SpeechEvent, EngineAdapter, RecognizerListener, RecognizerAdapter, SynthesizerListener, SynthesizerAdapter

Method Summary
void engineAllocated(EngineEvent e)
          The Engine has been allocated.
void engineAllocatingResources(EngineEvent e)
          The Engine is being allocated.
void engineDeallocated(EngineEvent e)
          The Engine has been deallocated.
void engineDeallocatingResources(EngineEvent e)
          The Engine is being deallocated.
void engineError(EngineErrorEvent e)
          An EngineErrorEvent has occurred and the Engine is unable to continue normal operation.
void enginePaused(EngineEvent e)
          The Engine has been paused.
void engineResumed(EngineEvent e)
          The Engine has been resumed.
 

Method Detail

enginePaused

public void enginePaused(EngineEvent e)
The Engine has been paused.

See Also:
ENGINE_PAUSED

engineResumed

public void engineResumed(EngineEvent e)
The Engine has been resumed.

See Also:
ENGINE_RESUMED

engineAllocated

public void engineAllocated(EngineEvent e)
The Engine has been allocated.

See Also:
ENGINE_ALLOCATED

engineDeallocated

public void engineDeallocated(EngineEvent e)
The Engine has been deallocated.

See Also:
ENGINE_DEALLOCATED

engineAllocatingResources

public void engineAllocatingResources(EngineEvent e)
The Engine is being allocated.

See Also:
ENGINE_ALLOCATING_RESOURCES

engineDeallocatingResources

public void engineDeallocatingResources(EngineEvent e)
The Engine is being deallocated.

See Also:
ENGINE_DEALLOCATING_RESOURCES

engineError

public void engineError(EngineErrorEvent e)
An EngineErrorEvent has occurred and the Engine is unable to continue normal operation.

See Also:
EngineErrorEvent

Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

JavaTM Speech API
Copyright 1997-1998 Sun Microsystems, Inc. All rights reserved
Send comments to javaspeech-comments@sun.com