Babylon Mkms Npc Sdk
Basic implementation
- loads character to scene
const avatar = new Avatar(scene, { apikey });
await avatar.loadAvatar(assetUrl);
Inerence speech request
- ask avatar a question
avatar.inferenceRequest({
npcId: 19,
endUserId: 123,
voiceId: 'Giorgio',
message: 'hello what are you doing',
});
Testing sdk locally
yarn dev