|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SystemOutput
Facade for easy access to the system output.
Objects that implement this interface support audio output using audio files and text-to-speech (TTS). They are able to freely sequence TTS and audio output.
If an audio output resource is not available, an
error.noresource event is thrown. Audio files are referred to
by a URI. The language specifies a required set of audio file formats which
must be supported; additional audio file formats may also be supported.
Copyright © 2005-2006 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Method Summary | |
|---|---|
void |
activate()
Activate this system output, when it is retrieved from the pool. |
void |
cancelOutput()
Cancels the current output from the TTS engine and queued audio for all entries in the queue that allow bargein. |
void |
passivate()
Passivates this system output, when it is returned to the pool. |
void |
queueAudio(AudioInputStream audio)
The audio, delivered by the audio stream is queued after
the last element in the speaking queue. |
void |
queueSpeakable(SpeakableText speakable,
boolean bargein,
DocumentServer documentServer)
The Speakable object is added to the end of the speaking queue and will be spoken once it reaches the top of the queue. |
| Methods inherited from interface org.jvoicexml.ExternalResource |
|---|
close, getType, open |
| Methods inherited from interface org.jvoicexml.RemoteConnectable |
|---|
connect |
| Method Detail |
|---|
void queueSpeakable(SpeakableText speakable,
boolean bargein,
DocumentServer documentServer)
throws NoresourceError,
BadFetchError
speakable - Text to be spoken.bargein - true if the output can be cancelled.documentServer - The document server to use.
NoresourceError - The output resource is not available.
BadFetchError - A URI within the speakable could not be obtained or a parsing
error occured.
void queueAudio(AudioInputStream audio)
throws NoresourceError,
BadFetchError
audio stream is queued after
the last element in the speaking queue.
If bargein can be used while queuing the audio depends on the surrounding
<prompt>.
audio - Stream with audio data.
NoresourceError - The output resource is not available.
BadFetchError - Error reading from the AudioStream.
void cancelOutput()
throws NoresourceError
The implementation has to maintain a list of cancellable outputs
dependingon the bargein flag.
NoresourceError - The output resource is not available.void activate()
activate in interface ExternalResourcevoid passivate()
passivate in interface ExternalResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||