TextSource Class
- java.
lang. Object - com.
azure. communication. callautomation. models. PlaySource - com.
azure. communication. callautomation. models. TextSource
- com.
- com.
public final class TextSource
extends PlaySource
The FileSource model.
Constructor Summary
| Constructor | Description |
|---|---|
| TextSource() |
Creates a new instance of TextSource. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Text |
fromJson(JsonReader jsonReader)
Reads an instance of Text |
| String |
getCustomVoiceEndpointId()
Get the custom |
| String |
getSourceLocale()
Get the source |
| String |
getText()
Get the text property: Text for the cognitive service to be played. |
|
Voice |
getVoiceKind()
Get the voice |
| String |
getVoiceName()
Get the voice |
|
Text |
setCustomVoiceEndpointId(String customVoiceEndpointId)
Set the custom |
|
Text |
setSourceLocale(String sourceLocale)
Set the source |
|
Text |
setText(String text)
Set the text property: Text for the cognitive service to be played. |
|
Text |
setVoiceKind(VoiceKind voiceKind)
Set the voice |
|
Text |
setVoiceName(String voiceName)
Set the voice |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from PlaySource
Methods inherited from java.lang.Object
Constructor Details
TextSource
public TextSource()
Creates a new instance of TextSource.
Method Details
fromJson
public static TextSource fromJson(JsonReader jsonReader)
Reads an instance of TextSource from the JsonReader.
Parameters:
Returns:
Throws:
getCustomVoiceEndpointId
public String getCustomVoiceEndpointId()
Get the customVoiceEndpointId property: Endpoint where the custom voice was deployed.
Returns:
getSourceLocale
public String getSourceLocale()
Get the sourceLocale property: Source language locale to be played.
Returns:
getText
public String getText()
Get the text property: Text for the cognitive service to be played.
Returns:
getVoiceKind
public VoiceKind getVoiceKind()
Get the voiceKind property: Voice kind type.
Returns:
getVoiceName
public String getVoiceName()
Get the voiceName property: Voice name to be played.
Returns:
setCustomVoiceEndpointId
public TextSource setCustomVoiceEndpointId(String customVoiceEndpointId)
Set the customVoiceEndpointId property: Endpoint where the custom voice was deployed.
Parameters:
Returns:
setSourceLocale
public TextSource setSourceLocale(String sourceLocale)
Set the sourceLocale property: Source language locale to be played.
Parameters:
Returns:
setText
public TextSource setText(String text)
Set the text property: Text for the cognitive service to be played.
Parameters:
Returns:
setVoiceKind
public TextSource setVoiceKind(VoiceKind voiceKind)
Set the voiceKind property: Voice kind type.
Parameters:
Returns:
setVoiceName
public TextSource setVoiceName(String voiceName)
Set the voiceName property: Voice name to be played.
Parameters:
Returns: