public final class SpeechSynthesis extends AudioItem
SpeechSynthesis
represents a text that will be spoken using a
synthesis voice. It can be either a string of text or a SSML document.Modifier and Type | Field and Description |
---|---|
static String |
SPEECH_SYNTHESIS_ELEMENT_TYPE |
TYPE_PROPERTY
Constructor and Description |
---|
SpeechSynthesis(DocumentFragment documentFragment) |
SpeechSynthesis(String text) |
Modifier and Type | Method and Description |
---|---|
protected void |
addJsonProperties(javax.json.JsonObjectBuilder builder) |
boolean |
equals(Object obj) |
DocumentFragment |
getDocumentFragment() |
String |
getElementType() |
String |
getText() |
int |
hashCode() |
boolean |
isSsml() |
public static final String SPEECH_SYNTHESIS_ELEMENT_TYPE
public SpeechSynthesis(String text)
text
- The synthesis text. Not empty.public SpeechSynthesis(DocumentFragment documentFragment)
documentFragment
- The SSML document. Not null.public String getElementType()
getElementType
in class AudioItem
public DocumentFragment getDocumentFragment()
public boolean isSsml()
protected void addJsonProperties(javax.json.JsonObjectBuilder builder)
addJsonProperties
in class AudioItem
Copyright © 2019 Nu Echo Inc..