Options for configuring an AvatarSession.

interface AvatarSessionOptions {
    apiKey?: string;
    apiUrl?: string;
    avatarId?: null | string;
    avatarImage?: null | AvatarImage;
    avatarParticipantIdentity?: string;
    avatarParticipantName?: string;
    connOptions?: APIConnectOptions;
}

Properties

apiKey?: string

The Hedra API key. Can also be set via HEDRA_API_KEY environment variable.

apiUrl?: string

The Hedra API URL. Defaults to https://api.hedra.com/public/livekit/v1/session or HEDRA_API_URL environment variable.

avatarId?: null | string

The avatar ID to use. Either avatarId or avatarImage must be provided.

avatarImage?: null | AvatarImage

A custom avatar image to use. Either avatarId or avatarImage must be provided.

avatarParticipantIdentity?: string

The identity of the avatar participant in the room. Defaults to 'hedra-avatar-agent'.

avatarParticipantName?: string

The name of the avatar participant in the room. Defaults to 'hedra-avatar-agent'.

connOptions?: APIConnectOptions

Connection options for API requests.