public class AddWordOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
AddWordOptions.Builder
Builder.
|
static interface |
AddWordOptions.PartOfSpeech
**Japanese only.** The part of speech for the word.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
customizationId |
protected java.lang.String |
partOfSpeech |
protected java.lang.String |
translation |
protected java.lang.String |
word |
Modifier | Constructor and Description |
---|---|
protected |
AddWordOptions(AddWordOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
customizationId()
Gets the customizationId.
|
AddWordOptions.Builder |
newBuilder()
New builder.
|
java.lang.String |
partOfSpeech()
Gets the partOfSpeech.
|
java.lang.String |
translation()
Gets the translation.
|
java.lang.String |
word()
Gets the word.
|
protected java.lang.String customizationId
protected java.lang.String word
protected java.lang.String translation
protected java.lang.String partOfSpeech
protected AddWordOptions(AddWordOptions.Builder builder)
public AddWordOptions.Builder newBuilder()
public java.lang.String customizationId()
The customization ID (GUID) of the custom voice model. You must make the request with credentials for the instance of the service that owns the custom model.
public java.lang.String word()
The word that is to be added or updated for the custom voice model.
public java.lang.String translation()
The phonetic or sounds-like translation for the word. A phonetic translation is based on the SSML format for representing the phonetic string of a word either as an IPA translation or as an IBM SPR translation. The Arabic, Chinese, Dutch, and Korean languages support only IPA. A sounds-like is one or more words that, when combined, sound like the word.
public java.lang.String partOfSpeech()
**Japanese only.** The part of speech for the word. The service uses the value to produce the correct intonation for the word. You can create only a single entry, with or without a single part of speech, for any word; you cannot create multiple entries with different parts of speech for the same word. For more information, see [Working with Japanese entries](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-rules#jaNotes).