public class SynthesizeOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
SynthesizeOptions.Builder
Builder.
|
static interface |
SynthesizeOptions.Voice
The voice to use for synthesis.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
accept |
protected java.lang.String |
customizationId |
protected java.lang.String |
text |
protected java.util.List<java.lang.String> |
timings |
protected java.lang.String |
voice |
Modifier | Constructor and Description |
---|---|
protected |
SynthesizeOptions(SynthesizeOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
accept()
Gets the accept.
|
java.lang.String |
customizationId()
Gets the customizationId.
|
java.util.List<java.lang.String> |
getTimings()
Gets the timings.
|
SynthesizeOptions.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 accept
protected java.lang.String voice
protected java.lang.String customizationId
protected java.util.List<java.lang.String> timings
protected SynthesizeOptions(SynthesizeOptions.Builder builder)
public SynthesizeOptions.Builder newBuilder()
public java.lang.String text()
The text to synthesize.
public java.lang.String accept()
The requested format (MIME type) of the audio. You can use the `Accept` header or the `accept` parameter to specify the audio format. For more information about specifying an audio format, see **Audio formats (accept types)** in the method description.
public java.lang.String voice()
The voice to use for synthesis.
public java.lang.String customizationId()
The customization ID (GUID) of a custom voice model to use for the synthesis. If a custom voice model is specified, it works only if it matches the language of the indicated voice. You must make the request with credentials for the instance of the service that owns the custom model. Omit the parameter to use the specified voice with no customization.
public java.util.List<java.lang.String> getTimings()
An array that specifies whether the service is to return word timing information for all strings of the input text. Specify `words` as the element of the array to request word timing information. The service returns the start and end time of each word of the input. Specify an empty array or omit the parameter to receive no word timing information. Not supported for Japanese input text.
NOTE: This parameter only works for the `synthesizeUsingWebSocket` method.