Class AvatarConfig

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

public abstract class AvatarConfig extends JsonSerializable
Configures the avatar to be used in the session.
  • Constructor Details

    • AvatarConfig

      public AvatarConfig()
  • Method Details

    • avatarName

      public abstract Optional<String> avatarName()
      Pre-built avatar id.
    • customizedAvatar

      public abstract Optional<CustomizedAvatar> customizedAvatar()
      Customized avatar appearance with a reference image.
    • audioBitrateBps

      public abstract Optional<Integer> audioBitrateBps()
      The bitrate of compressed audio.
    • videoBitrateBps

      public abstract Optional<Integer> videoBitrateBps()
      The bitrate of compressed video output.
    • builder

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

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

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