SsmlSource Class

public final class SsmlSource
extends PlaySource

The SsmlSource model.

Constructor Summary

Constructor Description
SsmlSource()

Initializes a new instance of SsmlSource.

Method Summary

Modifier and Type Method and Description
static SsmlSource fromJson(JsonReader jsonReader)

Reads an instance of SsmlSource from the JsonReader.

String getCustomVoiceEndpointId()

Get the customVoiceEndpointId property: Endpoint where the custom voice was deployed.

String getSsmlText()

Get the ssmlText property: Ssml string for the cognitive service to be played.

SsmlSource setCustomVoiceEndpointId(String customVoiceEndpointId)

Set the customVoiceEndpointId property: Endpoint where the custom voice was deployed.

SsmlSource setSsmlText(String ssmlText)

Set the ssmlText property: Ssml string for the cognitive service to be played.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from PlaySource

Methods inherited from java.lang.Object

Constructor Details

SsmlSource

public SsmlSource()

Initializes a new instance of SsmlSource.

Method Details

fromJson

public static SsmlSource fromJson(JsonReader jsonReader)

Reads an instance of SsmlSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SsmlSource 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 SsmlSource.

getCustomVoiceEndpointId

public String getCustomVoiceEndpointId()

Get the customVoiceEndpointId property: Endpoint where the custom voice was deployed.

Returns:

the customVoiceEndpointId value.

getSsmlText

public String getSsmlText()

Get the ssmlText property: Ssml string for the cognitive service to be played.

Returns:

the ssmlText value.

setCustomVoiceEndpointId

public SsmlSource setCustomVoiceEndpointId(String customVoiceEndpointId)

Set the customVoiceEndpointId property: Endpoint where the custom voice was deployed.

Parameters:

customVoiceEndpointId - the customVoiceEndpointId value to set.

Returns:

the TextSourceInternal object itself.

setSsmlText

public SsmlSource setSsmlText(String ssmlText)

Set the ssmlText property: Ssml string for the cognitive service to be played.

Parameters:

ssmlText - the ssmlText value to set.

Returns:

the SsmlSourceInternal object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to