Skip to main content

AnamAvatar

Anam avatar provider. Creates a configured Anam talking-avatar provider for use in a voice agent.

Constructor

apiKey
string | null
Anam API key. Falls back to the ANAM_API_KEY env var, then null.
avatarId
string
Avatar ID to render. Falls back to the ANAM_AVATAR_ID env var, then DEFAULT_AVATAR_ID.
personaName
string | null
Optional persona name to associate with the avatar. Default: null.
voiceId
string | null
Optional voice ID for the avatar’s speech. Default: null.

getRuntimeConfig

returns
Record<string, any>

DEFAULT_AVATAR_ID

Default Anam avatar ID used when none is supplied.