Discussions
SDK always shows same female avatar regardless of avatarName parameter
3 days ago by Nelson
Hello, please help me with this issue : SDK always shows same female avatar regardless of avatarName parameter
-
Avatar IDs tried:
- "Pedro_CasualLook_public"
- "Wayne_20240711"
- "Ann_Therapist_public"
(I've tried multiple IDs from your avatar list, but all show the same female avatar in white dress)
-
Code Initialization:
Here's the relevant code snippet showing how I'm initializing the avatar:const startRequest = { voiceChatTransport: "websocket", useSilencePrompt: false, newSessionRequest: { avatarName: "Pedro_CasualLook_public", voice: { voiceId: "c8e176c17f814004885fd590e03ff99f" }, knowledge_base_id: "XXXXXXX", version: "v2", quality: "low" } }; const heygenSessionData = await avatarSDK.createStartAvatar(startRequest);
Console logs:
From my debugging logs, I can confirm:
The SDK successfully connects and creates a session
The correct avatarName is being sent in the request
A MediaStream is received with dimensions 480x480
Video playback starts correctly
But regardless of which avatarName I use, I always see the same woman in a white dress.
Browser testing:
I've cleared browser cache and cookies
Tested in different browsers
Added extra logging to verify the request parameters