Package com.google.genai.types
Class VoiceConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.VoiceConfig
None
-
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 the prebuilt voice to use.abstract Optional<ReplicatedVoiceConfig>If true, the model will use a replicated voice for the response.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
If true, the model will use a replicated voice for the response. -
prebuiltVoiceConfig
The configuration for the prebuilt voice to use. -
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.
-