|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.SpeakableSsmlText
public final class SpeakableSsmlText
Text to be passed to the TTS engine. This text may contain SSML markups, as defined in http://www.w3.org/TR/2003/CR-speech-synthesis-20031218/.
| Constructor Summary | |
|---|---|
SpeakableSsmlText(SsmlDocument doc)
Constructs a new object. |
|
SpeakableSsmlText(SsmlDocument doc,
boolean useBargein,
BargeInType type)
Constructs a new object. |
|
| Method Summary | |
|---|---|
SpeakableText |
appendSpeakableText(String str)
Appends the given text to this speakable. |
boolean |
equals(Object other)
|
BargeInType |
getBargeInType()
Retrieves the barge-in type. |
SsmlDocument |
getDocument()
Retrieves the SSML document to speak. |
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()
Checks is barge-in is enabled for this speakable. |
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpeakableSsmlText(SsmlDocument doc)
doc - The SSML document to speak.
public SpeakableSsmlText(SsmlDocument doc,
boolean useBargein,
BargeInType type)
doc - the SSML document to speak.useBargein - true if bargein is supported.type - the barge-in type.| Method Detail |
|---|
public String getSpeakableText()
getSpeakableText in interface SpeakableTextpublic SsmlDocument getDocument()
public SpeakableText appendSpeakableText(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()
isBargeInEnabled in interface SpeakableTexttrue if barge-in is enabled.public 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(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||