Package com.google.genai.types
Class SpeakerVoiceConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SpeakerVoiceConfig
Configuration for a single speaker in a multi speaker setup.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for SpeakerVoiceConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeakerVoiceConfig.Builderbuilder()Instantiates a builder for SpeakerVoiceConfig.static SpeakerVoiceConfigDeserializes a JSON string to a SpeakerVoiceConfig object.speaker()Required.abstract SpeakerVoiceConfig.BuilderCreates a builder with the same values as this instance.abstract Optional<VoiceConfig>Required.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
SpeakerVoiceConfig
public SpeakerVoiceConfig()
-
-
Method Details
-
speaker
Required. The name of the speaker. This should be the same as the speaker name used in the prompt. -
voiceConfig
Required. The configuration for the voice of this speaker. -
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.
-