Class ElevenLabsAutoConfiguration
java.lang.Object
org.springframework.ai.model.elevenlabs.autoconfigure.ElevenLabsAutoConfiguration
@AutoConfiguration(after={org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,SpringAiRetryAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration.class})
@ConditionalOnClass(ElevenLabsApi.class)
@EnableConfigurationProperties({ElevenLabsSpeechProperties.class,ElevenLabsConnectionProperties.class})
@ConditionalOnProperty(name="spring.ai.model.audio.speech",
havingValue="elevenlabs",
matchIfMissing=true)
public class ElevenLabsAutoConfiguration
extends Object
Auto-configuration for ElevenLabs.- Author:
- Alexandros Pappas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelevenLabsApi(ElevenLabsConnectionProperties connectionProperties, 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.web.client.ResponseErrorHandler responseErrorHandler) elevenLabsSpeechModel(ElevenLabsApi elevenLabsApi, ElevenLabsSpeechProperties speechProperties, org.springframework.retry.support.RetryTemplate retryTemplate)
-
Constructor Details
-
ElevenLabsAutoConfiguration
public ElevenLabsAutoConfiguration()
-
-
Method Details
-
elevenLabsApi
@Bean @ConditionalOnMissingBean public ElevenLabsApi elevenLabsApi(ElevenLabsConnectionProperties connectionProperties, 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.web.client.ResponseErrorHandler responseErrorHandler) -
elevenLabsSpeechModel
@Bean @ConditionalOnMissingBean public ElevenLabsTextToSpeechModel elevenLabsSpeechModel(ElevenLabsApi elevenLabsApi, ElevenLabsSpeechProperties speechProperties, org.springframework.retry.support.RetryTemplate retryTemplate)
-