Prerequisites
You need:- A Digital Human API key with
sessions:create,sessions:read, andsessions:deletescopes. - A digital human ID from your account dashboard.
- Node.js 20.17 or newer and a React application.
1. Install the SDK and LiveKit
2. Store server credentials
.env.local
3. Create a server route
app/api/session/route.ts
SessionConnection; it never returns the API key.
4. Connect from React
app/call.tsx
DigitalHumanRoom requests camera and microphone access by default. Use
LiveKit’s PreJoin component when users should select devices before the
session connects.
Next steps
Build a full call
Add prejoin device selection and LiveKit’s complete conferencing UI.
Embed only the face
Publish user media without showing a local participant tile.