Package com.sun.speech.freetts
Interface FreeTTSSpeakable
-
- All Known Implementing Classes:
FreeTTSSpeakableImpl,FreeTTSSynthesizerQueueItem
public interface FreeTTSSpeakableRepresents something that should be spoken.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelled()Indicates that this speakable has been cancelled.voidcompleted()Indicates that this speakable has been completed.org.w3c.dom.DocumentgetDocument()Gets the DOM document for this object.java.io.InputStreamgetInputStream()Gets the input streamjava.lang.StringgetText()Returns the text corresponding to this Playable.booleanisCompleted()Returnstrueif this queue item has been processed.booleanisDocument()Returnstrueif the item is a JSML document (Java Speech Markup Language).booleanisPlainText()Returnstrueif the item contains plain text (not Java Speech Markup Language text).booleanisStream()Returnstrueif the item is an input stream.voidstarted()Indicates that this speakable has been started.booleanwaitCompleted()Waits for this speakable item to be completed.
-
-
-
Method Detail
-
started
void started()
Indicates that this speakable has been started.
-
completed
void completed()
Indicates that this speakable has been completed.
-
cancelled
void cancelled()
Indicates that this speakable has been cancelled.
-
isCompleted
boolean isCompleted()
Returnstrueif this queue item has been processed.- Returns:
- true if it has been processed
-
waitCompleted
boolean waitCompleted()
Waits for this speakable item to be completed.- Returns:
- true if the item was completed successfully, false if the speakable was cancelled or an error occurred.
-
isPlainText
boolean isPlainText()
Returnstrueif the item contains plain text (not Java Speech Markup Language text).- Returns:
- true if the item contains plain text
-
isStream
boolean isStream()
Returnstrueif the item is an input stream.- Returns:
- true if the item is an input stream
-
isDocument
boolean isDocument()
Returnstrueif the item is a JSML document (Java Speech Markup Language).- Returns:
- true if the item is a document
-
getText
java.lang.String getText()
Returns the text corresponding to this Playable.- Returns:
- the Playable text
-
getDocument
org.w3c.dom.Document getDocument()
Gets the DOM document for this object.- Returns:
- the DOM document for this object
-
getInputStream
java.io.InputStream getInputStream()
Gets the input stream- Returns:
- the input stream
-
-