Package com.google.genai.types
Class ReplicatedVoiceConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReplicatedVoiceConfig
The configuration for the replicated voice to use.
-
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 mimetype of the voice sample.abstract ReplicatedVoiceConfig.BuilderCreates a builder with the same values as this instance.abstract Optional<byte[]>The sample of the custom 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 mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate. -
voiceSampleAudio
The sample of the custom 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.
-