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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VoiceConfig.Builder
builder()
Instantiates a builder for VoiceConfig.static VoiceConfig
Deserializes a JSON string to a VoiceConfig object.abstract Optional<PrebuiltVoiceConfig>
The configuration for the speaker to use.abstract VoiceConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
VoiceConfig
public VoiceConfig()
-
-
Method Details
-
prebuiltVoiceConfig
The configuration for the speaker 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.
-