Package org.springframework.ai.openai
Class OpenAiAudioSpeechOptions
java.lang.Object
org.springframework.ai.openai.AbstractOpenAiOptions
org.springframework.ai.openai.OpenAiAudioSpeechOptions
- All Implemented Interfaces:
org.springframework.ai.audio.tts.TextToSpeechOptions,org.springframework.ai.model.ModelOptions
public class OpenAiAudioSpeechOptions
extends AbstractOpenAiOptions
implements org.springframework.ai.audio.tts.TextToSpeechOptions
Configuration options for OpenAI text-to-speech using the OpenAI Java SDK.
- Author:
- Ahmed Yousri, Hyunjoon Choi, Jonghoon Park, Ilayaperumal Gopinathan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classstatic enumNested classes/interfaces inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
AbstractOpenAiOptions.AbstractBuilder<O extends AbstractOpenAiOptions,B extends AbstractOpenAiOptions.AbstractBuilder<O, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Doublestatic final StringFields inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOpenAiAudioSpeechOptions(@Nullable String baseUrl, @Nullable String apiKey, @Nullable com.openai.credential.Credential credential, @Nullable String model, @Nullable String microsoftDeploymentName, @Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion, @Nullable String organizationId, @Nullable Boolean isMicrosoftFoundry, @Nullable Boolean isGitHubModels, @Nullable Duration timeout, @Nullable Integer maxRetries, @Nullable Proxy proxy, @Nullable Map<String, String> customHeaders, @Nullable String input, @Nullable String voice, @Nullable String responseFormat, @Nullable Double speed, @Nullable String instructions) -
Method Summary
Methods inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
getApiKey, getBaseUrl, getCredential, getCustomHeaders, getDeploymentName, getMaxRetries, getMicrosoftDeploymentName, getMicrosoftFoundryServiceVersion, getModel, getOrganizationId, getProxy, getTimeout, isGitHubModels, isMicrosoftFoundryMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.audio.tts.TextToSpeechOptions
getModel
-
Field Details
-
DEFAULT_SPEECH_MODEL
- See Also:
-
DEFAULT_VOICE
-
DEFAULT_RESPONSE_FORMAT
-
DEFAULT_SPEED
-
-
Constructor Details
-
OpenAiAudioSpeechOptions
protected OpenAiAudioSpeechOptions(@Nullable String baseUrl, @Nullable String apiKey, @Nullable com.openai.credential.Credential credential, @Nullable String model, @Nullable String microsoftDeploymentName, @Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion, @Nullable String organizationId, @Nullable Boolean isMicrosoftFoundry, @Nullable Boolean isGitHubModels, @Nullable Duration timeout, @Nullable Integer maxRetries, @Nullable Proxy proxy, @Nullable Map<String, String> customHeaders, @Nullable String input, @Nullable String voice, @Nullable String responseFormat, @Nullable Double speed, @Nullable String instructions)
-
-
Method Details
-
builder
-
getInput
-
getVoice
- Specified by:
getVoicein interfaceorg.springframework.ai.audio.tts.TextToSpeechOptions
-
getResponseFormat
-
getInstructions
-
getSpeed
- Specified by:
getSpeedin interfaceorg.springframework.ai.audio.tts.TextToSpeechOptions
-
getFormat
- Specified by:
getFormatin interfaceorg.springframework.ai.audio.tts.TextToSpeechOptions
-
equals
-
hashCode
public int hashCode()
-