|
||||||||||
| 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-2008 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Method Summary | |
|---|---|
void |
cancelOutput()
Cancels the current output from the TTS engine and queued audio for all entries in the queue that allow barge-in. |
void |
queueSpeakable(SpeakableText speakable,
String sessionId,
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. |
| Method Detail |
|---|
void queueSpeakable(SpeakableText speakable,
String sessionId,
DocumentServer documentServer)
throws NoresourceError,
BadFetchError
speakable - Text to be spoken.sessionId - the session IddocumentServer - 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 occurred.
void cancelOutput()
throws NoresourceError
The implementation has to maintain a list of cancelable outputs
depending on the barge-in flag.
NoresourceError - The output resource is not available.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||