public static class SynthesizeOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String text)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
SynthesizeOptions.Builder |
accept(String accept)
Set the accept.
|
SynthesizeOptions |
build()
Builds a SynthesizeOptions.
|
SynthesizeOptions.Builder |
customizationId(String customizationId)
Set the customizationId.
|
SynthesizeOptions.Builder |
pitchPercentage(long pitchPercentage)
Set the pitchPercentage.
|
SynthesizeOptions.Builder |
ratePercentage(long ratePercentage)
Set the ratePercentage.
|
SynthesizeOptions.Builder |
spellOutMode(String spellOutMode)
Set the spellOutMode.
|
SynthesizeOptions.Builder |
text(String text)
Set the text.
|
SynthesizeOptions.Builder |
timings(List<String> timings)
Set the timings.
|
SynthesizeOptions.Builder |
voice(String voice)
Set the voice.
|
public Builder()
public Builder(String text)
text
- the textpublic SynthesizeOptions build()
public SynthesizeOptions.Builder text(String text)
text
- the textpublic SynthesizeOptions.Builder accept(String accept)
accept
- the acceptpublic SynthesizeOptions.Builder voice(String voice)
voice
- the voicepublic SynthesizeOptions.Builder customizationId(String customizationId)
customizationId
- the customizationIdpublic SynthesizeOptions.Builder spellOutMode(String spellOutMode)
spellOutMode
- the spellOutModepublic SynthesizeOptions.Builder ratePercentage(long ratePercentage)
ratePercentage
- the ratePercentagepublic SynthesizeOptions.Builder pitchPercentage(long pitchPercentage)
pitchPercentage
- the pitchPercentagepublic SynthesizeOptions.Builder timings(List<String> timings)
timings
- the list of timingsCopyright © 2023 IBM Cloud. All rights reserved.