Class OpenAiAudioSpeechAutoConfiguration

java.lang.Object
org.springframework.ai.model.openai.autoconfigure.OpenAiAudioSpeechAutoConfiguration

@AutoConfiguration(after={org.springframework.boot.restclient.autoconfigure.RestClientAutoConfiguration.class,org.springframework.boot.webclient.autoconfigure.WebClientAutoConfiguration.class,org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.class}) @ConditionalOnClass(org.springframework.ai.openai.api.OpenAiApi.class) @ConditionalOnProperty(name="spring.ai.model.audio.speech", havingValue="openai", matchIfMissing=true) @EnableConfigurationProperties({OpenAiConnectionProperties.class,OpenAiAudioSpeechProperties.class}) public class OpenAiAudioSpeechAutoConfiguration extends Object
Auto-configuration for OpenAI.
Author:
Christian Tzolov, Stefan Vassilev, Thomas Vitale, Ilayaperumal Gopinathan, Issam El-atif, Yanming Zhou
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.ai.openai.OpenAiAudioSpeechModel
    openAiAudioSpeechModel(OpenAiConnectionProperties commonProperties, OpenAiAudioSpeechProperties speechProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.core.retry.RetryTemplate> retryTemplate, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.function.client.WebClient.Builder> webClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.ResponseErrorHandler> responseErrorHandler)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OpenAiAudioSpeechAutoConfiguration

      public OpenAiAudioSpeechAutoConfiguration()
  • Method Details

    • openAiAudioSpeechModel

      @Bean @ConditionalOnMissingBean public org.springframework.ai.openai.OpenAiAudioSpeechModel openAiAudioSpeechModel(OpenAiConnectionProperties commonProperties, OpenAiAudioSpeechProperties speechProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.core.retry.RetryTemplate> retryTemplate, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.function.client.WebClient.Builder> webClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.ResponseErrorHandler> responseErrorHandler)