Package org.springframework.ai.audio.tts
Class DefaultTextToSpeechOptions
java.lang.Object
org.springframework.ai.audio.tts.DefaultTextToSpeechOptions
- All Implemented Interfaces:
TextToSpeechOptions,ModelOptions
Default implementation of the
TextToSpeechOptions interface.- Author:
- Alexandros Pappas
-
Nested Class Summary
Nested Classes -
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.getSpeed()Returns the speed of the generated speech.getVoice()Returns the voice to use for text-to-speech.inthashCode()toString()
-
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.
-
getVoice
Description copied from interface:TextToSpeechOptionsReturns the voice to use for text-to-speech.- Specified by:
getVoicein interfaceTextToSpeechOptions- Returns:
- The voice identifier.
-
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").
-
getSpeed
Description copied from interface:TextToSpeechOptionsReturns the speed of the generated speech.- Specified by:
getSpeedin interfaceTextToSpeechOptions- Returns:
- The speech speed.
-
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
-