public interface SystemOutput
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.
| Modifier and Type | Method and Description |
|---|---|
void |
cancelOutput(org.jvoicexml.xml.vxml.BargeInType type)
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,
java.lang.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.
|
void queueSpeakable(SpeakableText speakable, java.lang.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(org.jvoicexml.xml.vxml.BargeInType type)
throws NoresourceError
The implementation has to maintain a list of cancelable outputs
depending on the barge-in flag.
type - the bargein type to cancelNoresourceError - The output resource is not available.