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 StringControls how the audio is cut into chunks.@Nullable BooleanSpeaker identifiers (up to 4), positionally matchinggetKnownSpeakerReferences().Audio samples (as data URLs) containing known speaker references, positionally matchinggetKnownSpeakerNames().@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>voidsetChunkingStrategy(@Nullable String chunkingStrategy) voidsetDiarizedJsonWorkaroundEnabled(@Nullable Boolean diarizedJsonWorkaroundEnabled) voidsetKnownSpeakerNames(@Nullable List<String> knownSpeakerNames) voidsetKnownSpeakerReferences(@Nullable List<String> knownSpeakerReferences) 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) Methods 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) -
getDiarizedJsonWorkaroundEnabled
-
setDiarizedJsonWorkaroundEnabled
-
getChunkingStrategy
Controls how the audio is cut into chunks. Only"auto"is supported through this property -
setChunkingStrategy
-
getKnownSpeakerNames
Speaker identifiers (up to 4), positionally matchinggetKnownSpeakerReferences(). Only used with thegpt-4o-transcribe-diarizemodel. -
setKnownSpeakerNames
-
getKnownSpeakerReferences
Audio samples (as data URLs) containing known speaker references, positionally matchinggetKnownSpeakerNames(). Only used with thegpt-4o-transcribe-diarizemodel. -
setKnownSpeakerReferences
-
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
-