Table of Contents

Class AvatarConfig

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Configures the avatar to be used in the session.

public record AvatarConfig : IEquatable<AvatarConfig>
Inheritance
AvatarConfig
Implements
Inherited Members

Properties

AudioBitrateBps

The bitrate of compressed audio.

[JsonPropertyName("audioBitrateBps")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? AudioBitrateBps { get; set; }

Property Value

int?

AvatarName

Pre-built avatar id.

[JsonPropertyName("avatarName")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? AvatarName { get; set; }

Property Value

string

CustomizedAvatar

Customized avatar appearance with a reference image.

[JsonPropertyName("customizedAvatar")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public CustomizedAvatar? CustomizedAvatar { get; set; }

Property Value

CustomizedAvatar

VideoBitrateBps

The bitrate of compressed video output.

[JsonPropertyName("videoBitrateBps")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? VideoBitrateBps { get; set; }

Property Value

int?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a AvatarConfig object.

public static AvatarConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

AvatarConfig

The deserialized AvatarConfig object, or null if deserialization fails.