Package com.oracle.bmc.aispeech.model
Class SynthesizeSpeechDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.aispeech.model.SynthesizeSpeechDetails.Builder
-
- Enclosing class:
- SynthesizeSpeechDetails
public static class SynthesizeSpeechDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SynthesizeSpeechDetails.BuilderaudioConfig(TtsAudioConfig audioConfig)SynthesizeSpeechDetailsbuild()SynthesizeSpeechDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment where the user has access to call SpeechSynthesize api.SynthesizeSpeechDetails.Builderconfiguration(TtsConfiguration configuration)SynthesizeSpeechDetails.Buildercopy(SynthesizeSpeechDetails model)SynthesizeSpeechDetails.BuilderisStreamEnabled(Boolean isStreamEnabled)If set to true, response will be sent in the chunked transfer-encoding and audio chunks are sent back as and when they are ready.SynthesizeSpeechDetails.Buildertext(String text)The text input to get the inference audio from TTS Service.
-
-
-
Method Detail
-
text
public SynthesizeSpeechDetails.Builder text(String text)
The text input to get the inference audio from TTS Service.- Parameters:
text- the value to set- Returns:
- this builder
-
isStreamEnabled
public SynthesizeSpeechDetails.Builder isStreamEnabled(Boolean isStreamEnabled)
If set to true, response will be sent in the chunked transfer-encoding and audio chunks are sent back as and when they are ready.If set to false, response will be sent only once the entire audio is generated.
- Parameters:
isStreamEnabled- the value to set- Returns:
- this builder
-
compartmentId
public SynthesizeSpeechDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment where the user has access to call SpeechSynthesize api.But default user access will be checked at tenancy level.
- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
configuration
public SynthesizeSpeechDetails.Builder configuration(TtsConfiguration configuration)
-
audioConfig
public SynthesizeSpeechDetails.Builder audioConfig(TtsAudioConfig audioConfig)
-
build
public SynthesizeSpeechDetails build()
-
copy
public SynthesizeSpeechDetails.Builder copy(SynthesizeSpeechDetails model)
-
-