Class ElevenLabsTextToSpeechOptions.Builder
java.lang.Object
org.springframework.ai.elevenlabs.ElevenLabsTextToSpeechOptions.Builder
- Enclosing class:
- ElevenLabsTextToSpeechOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyLanguageTextNormalization(Boolean applyLanguageTextNormalization) applyTextNormalization(ElevenLabsApi.SpeechRequest.TextNormalizationMode applyTextNormalization) build()languageCode(String languageCode) Sets the model ID using the generic 'model' property.Sets the model ID using the ElevenLabs specific 'modelId' property.nextRequestIds(List<String> nextRequestIds) outputFormat(String outputFormat) previousRequestIds(List<String> previousRequestIds) previousText(String previousText) pronunciationDictionaryLocators(List<ElevenLabsApi.SpeechRequest.PronunciationDictionaryLocator> pronunciationDictionaryLocators) Sets the voice ID using the generic 'voice' property.Sets the voice ID using the ElevenLabs specific 'voiceId' property.voiceSettings(ElevenLabsApi.SpeechRequest.VoiceSettings voiceSettings)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
Sets the model ID using the generic 'model' property. This is an alias formodelId(String).- Parameters:
model- The model ID to use.- Returns:
- this builder.
-
modelId
Sets the model ID using the ElevenLabs specific 'modelId' property. This is an alias formodel(String).- Parameters:
modelId- The model ID to use.- Returns:
- this builder.
-
voice
Sets the voice ID using the generic 'voice' property. This is an alias forvoiceId(String).- Parameters:
voice- The voice ID to use.- Returns:
- this builder.
-
voiceId
Sets the voice ID using the ElevenLabs specific 'voiceId' property. This is an alias forvoice(String).- Parameters:
voiceId- The voice ID to use.- Returns:
- this builder.
-
format
-
outputFormat
-
voiceSettings
public ElevenLabsTextToSpeechOptions.Builder voiceSettings(ElevenLabsApi.SpeechRequest.VoiceSettings voiceSettings) -
languageCode
-
pronunciationDictionaryLocators
public ElevenLabsTextToSpeechOptions.Builder pronunciationDictionaryLocators(List<ElevenLabsApi.SpeechRequest.PronunciationDictionaryLocator> pronunciationDictionaryLocators) -
seed
-
previousText
-
nextText
-
previousRequestIds
-
nextRequestIds
-
applyTextNormalization
public ElevenLabsTextToSpeechOptions.Builder applyTextNormalization(ElevenLabsApi.SpeechRequest.TextNormalizationMode applyTextNormalization) -
applyLanguageTextNormalization
public ElevenLabsTextToSpeechOptions.Builder applyLanguageTextNormalization(Boolean applyLanguageTextNormalization) -
build
-