Overview | Package | Class | Tree | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AudioManager
is provided by a speech Engine
- a Recognizer
or Synthesizer
- to
allow an application to control audio input/output
and to monitor audio-related events.
The AudioManager
for an engine is obtained by
calling its getAudioManager
method.
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.
Method Summary | |
void | addAudioListener(AudioListener listener)
Request notifications of audio events to an AudioListener .
|
void | removeAudioListener(AudioListener listener)
Detach an audio listener from this AudioManager . |
Method Detail |
public void addAudioListener(AudioListener listener)
AudioListener
.
An application can attach multiple audio listeners to an
AudioManager
.
If the engine is a Recognizer
, a RecognizerAudioListener
may be attached since the RecognizerAudioListener
interface extends the AudioListener
interface.
public void removeAudioListener(AudioListener listener)
AudioManager
.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