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.Builder
to create the defaultTextToSpeechOptions
.copy()
Returns a copy of thisTextToSpeechOptions
.boolean
Returns 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.int
hashCode()
void
setApplyLanguageTextNormalization
(Boolean applyLanguageTextNormalization) void
setApplyTextNormalization
(ElevenLabsApi.SpeechRequest.TextNormalizationMode applyTextNormalization) void
setEnableLogging
(Boolean enableLogging) void
void
setLanguageCode
(String languageCode) void
void
setModelId
(String modelId) void
setNextRequestIds
(List<String> nextRequestIds) void
setNextText
(String nextText) void
setOutputFormat
(String outputFormat) void
setPreviousRequestIds
(List<String> previousRequestIds) void
setPreviousText
(String previousText) void
setPronunciationDictionaryLocators
(List<ElevenLabsApi.SpeechRequest.PronunciationDictionaryLocator> pronunciationDictionaryLocators) void
void
void
void
setVoiceId
(String voiceId) void
setVoiceSettings
(ElevenLabsApi.SpeechRequest.VoiceSettings voiceSettings) toString()
-
Constructor Details
-
ElevenLabsTextToSpeechOptions
public ElevenLabsTextToSpeechOptions()
-
-
Method Details
-
builder
Description copied from interface:TextToSpeechOptions
Creates a newTextToSpeechOptions.Builder
to create the defaultTextToSpeechOptions
.- Returns:
- Returns a new
TextToSpeechOptions.Builder
.
-
getModel
Description copied from interface:TextToSpeechOptions
Returns the model to use for text-to-speech.- Specified by:
getModel
in interfaceTextToSpeechOptions
- Returns:
- The model name.
-
setModel
-
getModelId
-
setModelId
-
getVoice
Description copied from interface:TextToSpeechOptions
Returns the voice to use for text-to-speech.- Specified by:
getVoice
in interfaceTextToSpeechOptions
- Returns:
- The voice identifier.
-
setVoice
-
getVoiceId
-
setVoiceId
-
getEnableLogging
-
setEnableLogging
-
getFormat
Description copied from interface:TextToSpeechOptions
Returns the output format for the generated audio.- Specified by:
getFormat
in interfaceTextToSpeechOptions
- Returns:
- The output format (e.g., "mp3", "wav").
-
setFormat
-
getOutputFormat
-
setOutputFormat
-
getSpeed
Description copied from interface:TextToSpeechOptions
Returns the speed of the generated speech.- Specified by:
getSpeed
in 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:TextToSpeechOptions
Returns a copy of thisTextToSpeechOptions
.- Specified by:
copy
in interfaceTextToSpeechOptions
- Returns:
- a copy of this
TextToSpeechOptions
-