Class OpenAiAudioSpeechProperties
java.lang.Object
org.springframework.ai.autoconfigure.openai.OpenAiAudioSpeechProperties
@ConfigurationProperties("spring.ai.openai.audio.speech")
public class OpenAiAudioSpeechProperties
extends Object
Configuration properties for OpenAI audio speech.
Default values for required options are model = tts_1, response format = mp3, voice =
alloy, and speed = 1.
- Author:
- Ahmed Yousri, Stefan Vassilev
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
setBaseUrl
(String baseUrl) void
setEnabled
(boolean enabled) void
setOptions
(OpenAiAudioSpeechOptions options) void
setOrganizationId
(String organizationId) void
setProjectId
(String projectId)
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
DEFAULT_SPEECH_MODEL
-
-
Constructor Details
-
OpenAiAudioSpeechProperties
public OpenAiAudioSpeechProperties()
-
-
Method Details
-
getOptions
-
setOptions
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getApiKey
-
setApiKey
-
getBaseUrl
-
setBaseUrl
-
getProjectId
-
setProjectId
-
getOrganizationId
-
setOrganizationId
-