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.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.getSpeed()
Returns the speed of the generated speech.getVoice()
Returns the voice to use for text-to-speech.int
hashCode()
toString()
-
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.
-
getVoice
Description copied from interface:TextToSpeechOptions
Returns the voice to use for text-to-speech.- Specified by:
getVoice
in interfaceTextToSpeechOptions
- Returns:
- The voice identifier.
-
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").
-
getSpeed
Description copied from interface:TextToSpeechOptions
Returns the speed of the generated speech.- Specified by:
getSpeed
in interfaceTextToSpeechOptions
- Returns:
- The speech speed.
-
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
-