Options for configuring an AvatarSession.

interface AvatarSessionOptions {
    agentId: string;
    apiKey?: string;
    apiUrl?: string;
    audioConfig?: AudioConfig;
    avatarParticipantIdentity?: string;
    avatarParticipantName?: string;
    connOptions?: APIConnectOptions;
}

Properties

agentId: string

D-ID agent id. Required. See the plugin README for how to create one.

apiKey?: string

D-ID API key. Falls back to DID_API_KEY.

apiUrl?: string

Override the D-ID API base URL.

audioConfig?: AudioConfig

Audio configuration for the stream sent to the D-ID avatar.

avatarParticipantIdentity?: string

Identity for the avatar participant. Defaults to d-id-avatar-agent.

avatarParticipantName?: string

Display name for the avatar participant. Defaults to d-id-avatar-agent.

connOptions?: APIConnectOptions

API retry/timeout options.