FreeTTSSpeakable
public class FreeTTSSpeakableImpl extends java.lang.Object implements FreeTTSSpeakable
Constructor | Description |
---|---|
FreeTTSSpeakableImpl(java.io.InputStream is) |
Constructor.
|
FreeTTSSpeakableImpl(java.lang.String text) |
Constructor.
|
FreeTTSSpeakableImpl(org.w3c.dom.Document doc) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
cancelled() |
Indicates that this speakable has been cancelled.
|
void |
completed() |
Indicates that this speakable has been completed.
|
org.w3c.dom.Document |
getDocument() |
Gets the DOM document for this object.
|
java.io.InputStream |
getInputStream() |
Gets the input stream.
|
java.lang.String |
getText() |
Returns the text corresponding to this Playable.
|
boolean |
isCompleted() |
Returns true if this queue item has been
processed.
|
boolean |
isDocument() |
Returns
true if the item is a JSML document
(Java Speech Markup Language). |
boolean |
isPlainText() |
Returns
true if the item contains plain text
(not Java Speech Markup Language text). |
boolean |
isStream() |
Returns
true if the item is an input stream. |
void |
started() |
Indicate that this speakable has been started.
|
boolean |
waitCompleted() |
Waits for this speakable item to be completed.
|
public FreeTTSSpeakableImpl(java.lang.String text)
text
- the text to be spokenpublic FreeTTSSpeakableImpl(org.w3c.dom.Document doc)
doc
- the doc to be spokenpublic FreeTTSSpeakableImpl(java.io.InputStream is)
is
- the doc to be spokenpublic void started()
started
in interface FreeTTSSpeakable
public void completed()
completed
in interface FreeTTSSpeakable
public void cancelled()
cancelled
in interface FreeTTSSpeakable
public boolean isCompleted()
isCompleted
in interface FreeTTSSpeakable
public boolean waitCompleted()
waitCompleted
in interface FreeTTSSpeakable
public boolean isPlainText()
true
if the item contains plain text
(not Java Speech Markup Language text).isPlainText
in interface FreeTTSSpeakable
public java.lang.String getText()
getText
in interface FreeTTSSpeakable
public org.w3c.dom.Document getDocument()
getDocument
in interface FreeTTSSpeakable
public boolean isStream()
true
if the item is an input stream.isStream
in interface FreeTTSSpeakable
public java.io.InputStream getInputStream()
getInputStream
in interface FreeTTSSpeakable
public boolean isDocument()
true
if the item is a JSML document
(Java Speech Markup Language).isDocument
in interface FreeTTSSpeakable