Class OpenAiAudioApi.SpeechRequest.Builder
java.lang.Object
org.springframework.ai.openai.api.OpenAiAudioApi.SpeechRequest.Builder
- Enclosing class:
- OpenAiAudioApi.SpeechRequest
Builder for the SpeechRequest.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()responseFormat(OpenAiAudioApi.SpeechRequest.AudioResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)instead.withResponseFormat(OpenAiAudioApi.SpeechRequest.AudioResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.useresponseFormat(AudioResponseFormat)instead.Deprecated, for removal: This API element is subject to removal in a future version.usespeed(Float)instead.Deprecated, for removal: This API element is subject to removal in a future version.usevoice(Voice)instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withModel
@Deprecated(forRemoval=true, since="1.0.0-M6") public OpenAiAudioApi.SpeechRequest.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)instead. -
model
-
withInput
@Deprecated(forRemoval=true, since="1.0.0-M6") public OpenAiAudioApi.SpeechRequest.Builder withInput(String input) Deprecated, for removal: This API element is subject to removal in a future version.useinput(String)instead. -
input
-
withVoice
@Deprecated(forRemoval=true, since="1.0.0-M6") public OpenAiAudioApi.SpeechRequest.Builder withVoice(OpenAiAudioApi.SpeechRequest.Voice voice) Deprecated, for removal: This API element is subject to removal in a future version.usevoice(Voice)instead. -
voice
-
withResponseFormat
@Deprecated(forRemoval=true, since="1.0.0-M6") public OpenAiAudioApi.SpeechRequest.Builder withResponseFormat(OpenAiAudioApi.SpeechRequest.AudioResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.useresponseFormat(AudioResponseFormat)instead. -
responseFormat
public OpenAiAudioApi.SpeechRequest.Builder responseFormat(OpenAiAudioApi.SpeechRequest.AudioResponseFormat responseFormat) -
withSpeed
@Deprecated(forRemoval=true, since="1.0.0-M6") public OpenAiAudioApi.SpeechRequest.Builder withSpeed(Float speed) Deprecated, for removal: This API element is subject to removal in a future version.usespeed(Float)instead. -
speed
-
build
-
input(String)instead.