Class ElevenLabsTextToSpeechOptions
java.lang.Object
org.springframework.ai.elevenlabs.ElevenLabsTextToSpeechOptions
- All Implemented Interfaces:
TextToSpeechOptions,ModelOptions
Options for ElevenLabs text-to-speech.
- Author:
- Alexandros Pappas, Sebastien Deleuze
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedElevenLabsTextToSpeechOptions(@Nullable String modelId, @Nullable String voiceId, @Nullable Boolean enableLogging, @Nullable String outputFormat, @Nullable ElevenLabsApi.SpeechRequest.VoiceSettings voiceSettings, @Nullable String languageCode, @Nullable List<ElevenLabsApi.SpeechRequest.PronunciationDictionaryLocator> pronunciationDictionaryLocators, @Nullable Integer seed, @Nullable String previousText, @Nullable String nextText, @Nullable List<String> previousRequestIds, @Nullable List<String> nextRequestIds, @Nullable ElevenLabsApi.SpeechRequest.TextNormalizationMode applyTextNormalization, @Nullable Boolean applyLanguageTextNormalization) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a newTextToSpeechOptions.Builderto create the defaultTextToSpeechOptions.boolean@Nullable Boolean@Nullable Boolean@Nullable StringReturns the output format for the generated audio.@Nullable String@Nullable StringgetModel()Returns the model to use for text-to-speech.@Nullable String@Nullable String@Nullable String@Nullable String@Nullable IntegergetSeed()@Nullable DoublegetSpeed()Returns the speed of the generated speech.@Nullable StringgetVoice()Returns the voice to use for text-to-speech.@Nullable StringinthashCode()
-
Constructor Details
-
ElevenLabsTextToSpeechOptions
protected ElevenLabsTextToSpeechOptions(@Nullable String modelId, @Nullable String voiceId, @Nullable Boolean enableLogging, @Nullable String outputFormat, @Nullable ElevenLabsApi.SpeechRequest.VoiceSettings voiceSettings, @Nullable String languageCode, @Nullable List<ElevenLabsApi.SpeechRequest.PronunciationDictionaryLocator> pronunciationDictionaryLocators, @Nullable Integer seed, @Nullable String previousText, @Nullable String nextText, @Nullable List<String> previousRequestIds, @Nullable List<String> nextRequestIds, @Nullable ElevenLabsApi.SpeechRequest.TextNormalizationMode applyTextNormalization, @Nullable Boolean applyLanguageTextNormalization)
-
-
Method Details
-
builder
Description copied from interface:TextToSpeechOptionsCreates a newTextToSpeechOptions.Builderto create the defaultTextToSpeechOptions.- Returns:
- Returns a new
TextToSpeechOptions.Builder.
-
getModel
Description copied from interface:TextToSpeechOptionsReturns the model to use for text-to-speech.- Specified by:
getModelin interfaceTextToSpeechOptions- Returns:
- The model name.
-
getModelId
-
getVoice
Description copied from interface:TextToSpeechOptionsReturns the voice to use for text-to-speech.- Specified by:
getVoicein interfaceTextToSpeechOptions- Returns:
- The voice identifier.
-
getVoiceId
-
getEnableLogging
-
getFormat
Description copied from interface:TextToSpeechOptionsReturns the output format for the generated audio.- Specified by:
getFormatin interfaceTextToSpeechOptions- Returns:
- The output format (e.g., "mp3", "wav").
-
getOutputFormat
-
getSpeed
Description copied from interface:TextToSpeechOptionsReturns the speed of the generated speech.- Specified by:
getSpeedin interfaceTextToSpeechOptions- Returns:
- The speech speed.
-
getVoiceSettings
-
getLanguageCode
-
getPronunciationDictionaryLocators
public @Nullable List<ElevenLabsApi.SpeechRequest.PronunciationDictionaryLocator> getPronunciationDictionaryLocators() -
getSeed
-
getPreviousText
-
getNextText
-
getPreviousRequestIds
-
getNextRequestIds
-
getApplyTextNormalization
-
getApplyLanguageTextNormalization
-
equals
-
hashCode
public int hashCode()
-