public final class SpeakableSsmlText extends java.lang.Object implements SpeakableText
| Constructor and Description |
|---|
SpeakableSsmlText(org.jvoicexml.xml.ssml.SsmlDocument doc)
Constructs a new object.
|
SpeakableSsmlText(org.jvoicexml.xml.ssml.SsmlDocument doc,
boolean useBargein,
org.jvoicexml.xml.vxml.BargeInType type)
Constructs a new object.
|
SpeakableSsmlText(java.lang.String text,
java.util.Locale locale)
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
SpeakableText |
appendSpeakableText(java.lang.String str)
Appends the given text to this speakable.
|
boolean |
equals(java.lang.Object other) |
org.jvoicexml.xml.vxml.BargeInType |
getBargeInType()
Retrieves the barge-in type.
|
org.jvoicexml.xml.ssml.SsmlDocument |
getDocument()
Retrieves the SSML document to speak.
|
java.lang.String |
getSpeakableText()
Retrieves the text to be passed to the TTS Engine.
|
long |
getTimeout()
Retrieves the timeout of this speakable to wait before a
noinput event is generated.
|
int |
hashCode() |
boolean |
isBargeInEnabled(org.jvoicexml.xml.vxml.BargeInType type)
Checks is barge-in is enabled for this speakable and the given bargein
type.
|
boolean |
isSpeakableTextEmpty()
Checks if this speakable contains any text to be passed to the
TTS engine.
|
void |
setTimeout(long msec)
Sets the timeout that will be used for the following user input.
|
java.lang.String |
toString() |
public SpeakableSsmlText(java.lang.String text,
java.util.Locale locale)
throws javax.xml.parsers.ParserConfigurationException
SsmlDocument.text - the text that should be contained in the speakablelocale - the locale of this speakablejavax.xml.parsers.ParserConfigurationException - error creating the SsmlDocument.public SpeakableSsmlText(org.jvoicexml.xml.ssml.SsmlDocument doc)
doc - The SSML document to speak.public SpeakableSsmlText(org.jvoicexml.xml.ssml.SsmlDocument doc,
boolean useBargein,
org.jvoicexml.xml.vxml.BargeInType type)
doc - the SSML document to speak.useBargein - true if bargein is supported.type - the barge-in type, maybe null if no bargein is
supported.public java.lang.String getSpeakableText()
getSpeakableText in interface SpeakableTextpublic org.jvoicexml.xml.ssml.SsmlDocument getDocument()
public SpeakableText appendSpeakableText(java.lang.String str)
appendSpeakableText in interface SpeakableTextstr - Text to be appended.public boolean isSpeakableTextEmpty()
isSpeakableTextEmpty in interface SpeakableTexttrue if this speakable contains text.public boolean isBargeInEnabled(org.jvoicexml.xml.vxml.BargeInType type)
isBargeInEnabled in interface SpeakableTexttype - the bargein type to look fortrue if barge-in is enabled.public org.jvoicexml.xml.vxml.BargeInType getBargeInType()
public long getTimeout()
-1 if there is
no timeout specified.public void setTimeout(long msec)
msec - number of milliseconds to wait.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object