Class OpenAiAudioTranscriptionProperties
java.lang.Object
org.springframework.ai.model.openai.autoconfigure.AbstractOpenAiProperties
org.springframework.ai.model.openai.autoconfigure.OpenAiAudioTranscriptionProperties
@ConfigurationProperties("spring.ai.openai.audio.transcription")
public class OpenAiAudioTranscriptionProperties
extends AbstractOpenAiProperties
Configuration properties for OpenAI SDK audio transcription.
- Author:
- Michael Lavelle, Christian Tzolov, Piotr Olaszewski, Ilayaperumal Gopinathan
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.springframework.ai.model.openai.autoconfigure.AbstractOpenAiProperties
DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String@Nullable StringgetModel()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable String@Nullable com.openai.models.audio.AudioResponseFormat@Nullable Float@Nullable List<com.openai.models.audio.transcriptions.TranscriptionCreateParams.TimestampGranularity>voidsetLanguage(@Nullable String language) voidvoidvoidvoidsetResponseFormat(@Nullable com.openai.models.audio.AudioResponseFormat responseFormat) voidsetTemperature(@Nullable Float temperature) voidsetTimestampGranularities(@Nullable List<com.openai.models.audio.transcriptions.TranscriptionCreateParams.TimestampGranularity> timestampGranularities) org.springframework.ai.openai.OpenAiAudioTranscriptionOptionsMethods inherited from class org.springframework.ai.model.openai.autoconfigure.AbstractOpenAiProperties
getApiKey, getBaseUrl, getCredential, getCustomHeaders, getDeploymentName, getMaxRetries, getMicrosoftDeploymentName, getMicrosoftFoundryServiceVersion, getOrganizationId, getProxy, getTimeout, isConnectionPoolMetricsEnabled, isGitHubModels, isMicrosoftFoundry, setApiKey, setBaseUrl, setConnectionPoolMetricsEnabled, setCredential, setCustomHeaders, setDeploymentName, setGitHubModels, setMaxRetries, setMicrosoftDeploymentName, setMicrosoftFoundry, setMicrosoftFoundryServiceVersion, setOrganizationId, setProxy, setTimeout
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
-
Constructor Details
-
OpenAiAudioTranscriptionProperties
public OpenAiAudioTranscriptionProperties()
-
-
Method Details
-
getModel
- Overrides:
getModelin classAbstractOpenAiProperties
-
setModel
- Overrides:
setModelin classAbstractOpenAiProperties
-
getResponseFormat
public @Nullable com.openai.models.audio.AudioResponseFormat getResponseFormat() -
setResponseFormat
public void setResponseFormat(@Nullable com.openai.models.audio.AudioResponseFormat responseFormat) -
getPrompt
-
setPrompt
-
getLanguage
-
setLanguage
-
getTemperature
-
setTemperature
-
getTimestampGranularities
public @Nullable List<com.openai.models.audio.transcriptions.TranscriptionCreateParams.TimestampGranularity> getTimestampGranularities() -
setTimestampGranularities
public void setTimestampGranularities(@Nullable List<com.openai.models.audio.transcriptions.TranscriptionCreateParams.TimestampGranularity> timestampGranularities) -
toOptions
public org.springframework.ai.openai.OpenAiAudioTranscriptionOptions toOptions() -
getOptions
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.audio.transcription") @Deprecated(since="2.0.0", forRemoval=true) public OpenAiAudioTranscriptionProperties.Options getOptions()Deprecated, for removal: This API element is subject to removal in a future version. -
setOptions
-