Class VoiceConfig

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

public abstract class VoiceConfig extends JsonSerializable
The configuration for the voice to use.
  • Constructor Details

    • VoiceConfig

      public VoiceConfig()
  • Method Details

    • prebuiltVoiceConfig

      public abstract Optional<PrebuiltVoiceConfig> prebuiltVoiceConfig()
      The configuration for the speaker to use.
    • builder

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

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

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