public final class AudioFile extends AudioItem
AudioFile represents an audio file with an optional synthesis text
backup.SpeechSynthesis,
FetchConfiguration| Modifier and Type | Field and Description |
|---|---|
static String |
AUDIO_FILE_ELEMENT_TYPE |
TYPE_PROPERTY| Constructor and Description |
|---|
AudioFile() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addJsonProperties(javax.json.JsonObjectBuilder builder) |
boolean |
equals(Object obj) |
static AudioFile |
fromExpression(String expression) |
static AudioFile |
fromExpression(String expression,
SpeechSynthesis alternate) |
static AudioFile |
fromExpression(String expression,
String alternate) |
static AudioFile |
fromLocation(String location) |
static AudioFile |
fromLocation(String location,
SpeechSynthesis alternate) |
static AudioFile |
fromLocation(String location,
String alternate) |
SpeechSynthesis |
getAlternate() |
String |
getElementType() |
String |
getExpression() |
FetchConfiguration |
getFetchConfiguration() |
String |
getLocation() |
int |
hashCode() |
void |
setAlternate(SpeechSynthesis alternate) |
void |
setAlternate(String alternate) |
void |
setFetchConfiguration(FetchConfiguration fetchConfiguration) |
public static final String AUDIO_FILE_ELEMENT_TYPE
public AudioFile()
public static AudioFile fromLocation(String location)
public static AudioFile fromExpression(String expression)
public static AudioFile fromLocation(String location, SpeechSynthesis alternate)
public static AudioFile fromExpression(String expression, SpeechSynthesis alternate)
public static AudioFile fromLocation(String location, String alternate)
public static AudioFile fromExpression(String expression, String alternate)
public void setFetchConfiguration(FetchConfiguration fetchConfiguration)
fetchConfiguration - The resource fetch configuration.
null to use the VoiceXML platform default.public void setAlternate(SpeechSynthesis alternate)
public void setAlternate(String alternate)
public String getElementType()
getElementType in class AudioItempublic String getLocation()
public String getExpression()
public SpeechSynthesis getAlternate()
public FetchConfiguration getFetchConfiguration()
protected void addJsonProperties(javax.json.JsonObjectBuilder builder)
addJsonProperties in class AudioItemCopyright © 2019 Nu Echo Inc..