Package com.google.genai.types
Class VoiceConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.VoiceConfig
The configuration for the voice to use.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VoiceConfig.Builderbuilder()Instantiates a builder for VoiceConfig.static VoiceConfigDeserializes a JSON string to a VoiceConfig object.abstract Optional<PrebuiltVoiceConfig>The configuration for a prebuilt voice.abstract Optional<ReplicatedVoiceConfig>The configuration for a replicated voice, which is a clone of a user's voice that can be used for speech synthesis.abstract VoiceConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
VoiceConfig
public VoiceConfig()
-
-
Method Details
-
replicatedVoiceConfig
The configuration for a replicated voice, which is a clone of a user's voice that can be used for speech synthesis. If this is unset, a default voice is used. -
prebuiltVoiceConfig
The configuration for a prebuilt voice. -
builder
Instantiates a builder for VoiceConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a VoiceConfig object.
-