Class PrebuiltVoiceConfig

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

public abstract class PrebuiltVoiceConfig extends JsonSerializable
The configuration for the prebuilt speaker to use.
  • Constructor Details

    • PrebuiltVoiceConfig

      public PrebuiltVoiceConfig()
  • Method Details

    • voiceName

      public abstract Optional<String> voiceName()
      The name of the prebuilt voice to use.
    • builder

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

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

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