public static class SynthesizeSpeechDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SynthesizeSpeechDetails.Builder |
audioConfig(TtsAudioConfig audioConfig) |
SynthesizeSpeechDetails |
build() |
SynthesizeSpeechDetails.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment where the user has access to call
SpeechSynthesize api. |
SynthesizeSpeechDetails.Builder |
configuration(TtsConfiguration configuration) |
SynthesizeSpeechDetails.Builder |
copy(SynthesizeSpeechDetails model) |
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.
|
SynthesizeSpeechDetails.Builder |
text(String text)
The text input to get the inference audio from TTS Service.
|
public SynthesizeSpeechDetails.Builder text(String text)
The text input to get the inference audio from TTS Service.
text
- the value to setpublic 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.
isStreamEnabled
- the value to setpublic 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.
compartmentId
- the value to setpublic SynthesizeSpeechDetails.Builder configuration(TtsConfiguration configuration)
public SynthesizeSpeechDetails.Builder audioConfig(TtsAudioConfig audioConfig)
public SynthesizeSpeechDetails build()
public SynthesizeSpeechDetails.Builder copy(SynthesizeSpeechDetails model)
Copyright © 2016–2024. All rights reserved.