Class javax.speech.AudioEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.speech.SpeechEvent
|
+--javax.speech.AudioEvent
- Subclasses:
- RecognizerAudioEvent
- public class AudioEvent
- extends SpeechEvent
Describes events associated with audio input/output for an Engine.
The event source is an Engine object.
Extended by the RecognizerAudioEvent class
that provides specialized events for a Recognizer.
Note: until the Java Sound API is finalized,
the AudioManager and other audio classes and
interfaces will remain as placeholders for future expansion.
Only the Recognizer audio events are functional in this release.
- See Also:
- Engine, RecognizerAudioEvent, Serialized Form
|
Constructor Summary
|
AudioEvent(Engine source,
int id)
Constructs an AudioEvent with a specified id.
|
|
Method Summary
|
|
String
|
paramString()
Returns a parameter string identifying this event.
|
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
AudioEvent
public AudioEvent(Engine source,
int id)
- Constructs an AudioEvent with a specified id.
- Parameters:
source
- Engine that produced the event
id
- type of audio event
paramString
public String paramString()
- Returns a parameter string identifying this event.
This method is useful for event-logging and for debugging.
- Returns:
- a string identifying the event
- Overrides:
- paramString in class SpeechEvent
JavaTM Speech API
Copyright 1997-1998 Sun Microsystems, Inc. All rights reserved
Send comments to javaspeech-comments@sun.com