@deepbrainai/aihuman-web-sdk
v2.3.4
Published
DeepBrain AI Human Web SDK v2 — realtime 2D talking avatar player for the browser.
Maintainers
Readme
@deepbrainai/aihuman-web-sdk
DeepBrain AI Human Web SDK v2 — a realtime 2D talking-avatar player for the browser.
Install
npm install @deepbrainai/aihuman-web-sdkTypeScript types are bundled. The published package contains the obfuscated player only.
Quick start
const AI_PLAYER = new AIPlayer(document.getElementById("AIPlayerWrapper"));
// ClientToken is minted on YOUR server from appId + userKey (userKey never leaves the server).
await AI_PLAYER.generateToken({ appId, token: clientToken });
await AI_PLAYER.getAIList();
await AI_PLAYER.init({ aiName });
// The first speak must follow a user gesture (browser audio policy).
button.onclick = () => AI_PLAYER.send("Hello!");Full docs: https://docs.aistudios.com/aihuman/web-sdk-v2/overview
License
Proprietary — © DeepBrain AI. All rights reserved. See LICENSE.
