Package com.google.genai.types
Class ReplicatedVoiceConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReplicatedVoiceConfig
ReplicatedVoiceConfig is used to configure replicated voice.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ReplicatedVoiceConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for ReplicatedVoiceConfig.static ReplicatedVoiceConfigDeserializes a JSON string to a ReplicatedVoiceConfig object.mimeType()The mime type of the replicated voice.abstract ReplicatedVoiceConfig.BuilderCreates a builder with the same values as this instance.abstract Optional<byte[]>The sample audio of the replicated voice.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ReplicatedVoiceConfig
public ReplicatedVoiceConfig()
-
-
Method Details
-
mimeType
The mime type of the replicated voice. -
voiceSampleAudio
The sample audio of the replicated voice. -
builder
Instantiates a builder for ReplicatedVoiceConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ReplicatedVoiceConfig object.
-