Class ReplicatedVoiceConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReplicatedVoiceConfig

public abstract class ReplicatedVoiceConfig extends JsonSerializable
ReplicatedVoiceConfig is used to configure replicated voice.
  • Constructor Details

    • ReplicatedVoiceConfig

      public ReplicatedVoiceConfig()
  • Method Details

    • mimeType

      public abstract Optional<String> mimeType()
      The mime type of the replicated voice.
    • voiceSampleAudio

      public abstract Optional<byte[]> voiceSampleAudio()
      The sample audio of the replicated voice.
    • builder

      public static ReplicatedVoiceConfig.Builder builder()
      Instantiates a builder for ReplicatedVoiceConfig.
    • toBuilder

      public abstract ReplicatedVoiceConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static ReplicatedVoiceConfig fromJson(String jsonString)
      Deserializes a JSON string to a ReplicatedVoiceConfig object.