Class TextSource
java.lang.Object
com.azure.communication.callautomation.models.PlaySource
com.azure.communication.callautomation.models.TextSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PlaySource>
The FileSource model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextSourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TextSource from the JsonReader.Get the customVoiceEndpointId property: Endpoint where the custom voice was deployed.Get the sourceLocale property: Source language locale to be played.getText()Get the text property: Text for the cognitive service to be played.Get the voiceKind property: Voice kind type.Get the voiceName property: Voice name to be played.setCustomVoiceEndpointId(String customVoiceEndpointId) Set the customVoiceEndpointId property: Endpoint where the custom voice was deployed.setSourceLocale(String sourceLocale) Set the sourceLocale property: Source language locale to be played.Set the text property: Text for the cognitive service to be played.setVoiceKind(VoiceKind voiceKind) Set the voiceKind property: Voice kind type.setVoiceName(String voiceName) Set the voiceName property: Voice name to be played.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.communication.callautomation.models.PlaySource
getPlaySourceCacheId, setPlaySourceCacheIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TextSource
public TextSource()
-
-
Method Details
-
getText
Get the text property: Text for the cognitive service to be played.- Returns:
- the text value.
-
setText
Set the text property: Text for the cognitive service to be played.- Parameters:
text- the text value to set.- Returns:
- the TextSource object itself.
-
getSourceLocale
Get the sourceLocale property: Source language locale to be played.- Returns:
- the sourceLocale value.
-
setSourceLocale
Set the sourceLocale property: Source language locale to be played.- Parameters:
sourceLocale- the sourceLocale value to set.- Returns:
- the TextSource object itself.
-
getVoiceKind
Get the voiceKind property: Voice kind type.- Returns:
- the voiceKind value.
-
setVoiceKind
Set the voiceKind property: Voice kind type.- Parameters:
voiceKind- the voiceKind value to set.- Returns:
- the TextSource object itself.
-
getVoiceName
Get the voiceName property: Voice name to be played.- Returns:
- the voiceName value.
-
setVoiceName
Set the voiceName property: Voice name to be played.- Parameters:
voiceName- the voiceName value to set.- Returns:
- the TextSourceInternal object itself.
-
getCustomVoiceEndpointId
Get the customVoiceEndpointId property: Endpoint where the custom voice was deployed.- Returns:
- the customVoiceEndpointId value.
-
setCustomVoiceEndpointId
Set the customVoiceEndpointId property: Endpoint where the custom voice was deployed.- Parameters:
customVoiceEndpointId- the customVoiceEndpointId value to set.- Returns:
- the TextSourceInternal object itself.
-
toJson
- Throws:
IOException
-
fromJson
Reads an instance of TextSource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TextSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TextSource.
-