Package org.springframework.ai.openai
Class OpenAiAudioSpeechOptions.Builder
java.lang.Object
org.springframework.ai.openai.OpenAiAudioSpeechOptions.Builder
- Enclosing class:
- OpenAiAudioSpeechOptions
-
Constructor Summary
-
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
-
model
-
input
-
voice
-
responseFormat
public OpenAiAudioSpeechOptions.Builder responseFormat(OpenAiAudioApi.SpeechRequest.AudioResponseFormat responseFormat) -
speed
-
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioSpeechOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withInput
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioSpeechOptions.Builder withInput(String input) Deprecated, for removal: This API element is subject to removal in a future version.useinput(String)
instead. -
withVoice
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioSpeechOptions.Builder withVoice(OpenAiAudioApi.SpeechRequest.Voice voice) Deprecated, for removal: This API element is subject to removal in a future version.usevoice(Voice)
instead. -
withResponseFormat
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioSpeechOptions.Builder withResponseFormat(OpenAiAudioApi.SpeechRequest.AudioResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.useresponseFormat(AudioResponseFormat)
instead. -
withSpeed
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiAudioSpeechOptions.Builder withSpeed(Float speed) Deprecated, for removal: This API element is subject to removal in a future version.usespeed(Float)
instead. -
build
-
input(String)
instead.