Class ElevenLabsTextToSpeechOptions
java.lang.Object
org.springframework.ai.elevenlabs.ElevenLabsTextToSpeechOptions
- All Implemented Interfaces:
TextToSpeechOptions,ModelOptions
Options for ElevenLabs text-to-speech.
- Author:
- Alexandros Pappas
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a newTextToSpeechOptions.Builderto create the defaultTextToSpeechOptions.copy()Returns a copy of thisTextToSpeechOptions.booleanReturns the output format for the generated audio.getModel()Returns the model to use for text-to-speech.getSeed()getSpeed()Returns the speed of the generated speech.getVoice()Returns the voice to use for text-to-speech.inthashCode()voidsetApplyLanguageTextNormalization(Boolean applyLanguageTextNormalization) voidsetApplyTextNormalization(ElevenLabsApi.SpeechRequest.TextNormalizationMode applyTextNormalization) voidsetEnableLogging(Boolean enableLogging) voidvoidsetLanguageCode(String languageCode) voidvoidsetModelId(String modelId) voidsetNextRequestIds(List<String> nextRequestIds) voidsetNextText(String nextText) voidsetOutputFormat(String outputFormat) voidsetPreviousRequestIds(List<String> previousRequestIds) voidsetPreviousText(String previousText) voidsetPronunciationDictionaryLocators(List<ElevenLabsApi.SpeechRequest.PronunciationDictionaryLocator> pronunciationDictionaryLocators) voidvoidvoidvoidsetVoiceId(String voiceId) voidsetVoiceSettings(ElevenLabsApi.SpeechRequest.VoiceSettings voiceSettings) toString()
-
Constructor Details
-
ElevenLabsTextToSpeechOptions
public ElevenLabsTextToSpeechOptions()
-
-
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.
-
setModel
-
getModelId
-
setModelId
-
getVoice
Description copied from interface:TextToSpeechOptionsReturns the voice to use for text-to-speech.- Specified by:
getVoicein interfaceTextToSpeechOptions- Returns:
- The voice identifier.
-
setVoice
-
getVoiceId
-
setVoiceId
-
getEnableLogging
-
setEnableLogging
-
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").
-
setFormat
-
getOutputFormat
-
setOutputFormat
-
getSpeed
Description copied from interface:TextToSpeechOptionsReturns the speed of the generated speech.- Specified by:
getSpeedin interfaceTextToSpeechOptions- Returns:
- The speech speed.
-
setSpeed
-
getVoiceSettings
-
setVoiceSettings
-
getLanguageCode
-
setLanguageCode
-
getPronunciationDictionaryLocators
public List<ElevenLabsApi.SpeechRequest.PronunciationDictionaryLocator> getPronunciationDictionaryLocators() -
setPronunciationDictionaryLocators
public void setPronunciationDictionaryLocators(List<ElevenLabsApi.SpeechRequest.PronunciationDictionaryLocator> pronunciationDictionaryLocators) -
getSeed
-
setSeed
-
getPreviousText
-
setPreviousText
-
getNextText
-
setNextText
-
getPreviousRequestIds
-
setPreviousRequestIds
-
getNextRequestIds
-
setNextRequestIds
-
getApplyTextNormalization
-
setApplyTextNormalization
public void setApplyTextNormalization(ElevenLabsApi.SpeechRequest.TextNormalizationMode applyTextNormalization) -
getApplyLanguageTextNormalization
-
setApplyLanguageTextNormalization
-
equals
-
hashCode
public int hashCode() -
toString
-
copy
Description copied from interface:TextToSpeechOptionsReturns a copy of thisTextToSpeechOptions.- Specified by:
copyin interfaceTextToSpeechOptions- Returns:
- a copy of this
TextToSpeechOptions
-