Package com.google.genai.types
Class SpeakerVoiceConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SpeakerVoiceConfig
The configuration for the speaker to use.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for SpeakerVoiceConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeakerVoiceConfig.Builder
builder()
Instantiates a builder for SpeakerVoiceConfig.static SpeakerVoiceConfig
Deserializes a JSON string to a SpeakerVoiceConfig object.speaker()
The name of the speaker to use.abstract SpeakerVoiceConfig.Builder
Creates a builder with the same values as this instance.abstract Optional<VoiceConfig>
The configuration for the voice to use.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
SpeakerVoiceConfig
public SpeakerVoiceConfig()
-
-
Method Details
-
speaker
The name of the speaker to use. Should be the same as in the prompt. -
voiceConfig
The configuration for the voice to use. -
builder
Instantiates a builder for SpeakerVoiceConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SpeakerVoiceConfig object.
-