public class GetPronunciationOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
GetPronunciationOptions.Builder
Builder.
|
static interface |
GetPronunciationOptions.Format
The phoneme format in which to return the pronunciation.
|
static interface |
GetPronunciationOptions.Voice
A voice that specifies the language in which the pronunciation is to be returned.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
customizationId |
protected java.lang.String |
format |
protected java.lang.String |
text |
protected java.lang.String |
voice |
Modifier | Constructor and Description |
---|---|
protected |
GetPronunciationOptions(GetPronunciationOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
customizationId()
Gets the customizationId.
|
java.lang.String |
format()
Gets the format.
|
GetPronunciationOptions.Builder |
newBuilder()
New builder.
|
java.lang.String |
text()
Gets the text.
|
java.lang.String |
voice()
Gets the voice.
|
protected java.lang.String text
protected java.lang.String voice
protected java.lang.String format
protected java.lang.String customizationId
protected GetPronunciationOptions(GetPronunciationOptions.Builder builder)
public GetPronunciationOptions.Builder newBuilder()
public java.lang.String text()
The word for which the pronunciation is requested.
public java.lang.String voice()
A voice that specifies the language in which the pronunciation is to be returned. All voices for the same language (for example, `en-US`) return the same translation.
public java.lang.String format()
The phoneme format in which to return the pronunciation. The Arabic, Chinese, Dutch, and Korean languages support only IPA. Omit the parameter to obtain the pronunciation in the default format.
public java.lang.String customizationId()
The customization ID (GUID) of a custom voice model for which the pronunciation is to be returned. The language of a specified custom model must match the language of the specified voice. If the word is not defined in the specified custom model, the service returns the default translation for the custom model's language. You must make the request with credentials for the instance of the service that owns the custom model. Omit the parameter to see the translation for the specified voice with no customization.