Voice · Avatars3 min read
Real-Time Voice, 3D Avatars, NPCs & Robots
Stream low-latency spoken turns with multimodal vision/sensor perceptions, embodied body gestures, and automatic episode memory.
- Set
channel: "voice"for clean TTS-ready prose (no markdown, no stage directions) - Declare your rig's
bodyGesturesso the Being returns only gestures your body can play - Close sessions via
/episodes/endto consolidate long-term memory, and honor GDPR with one DELETE
- 1
Stream a spoken turn with gestures & live vision
Send spoken text (plus optional
visualCue,attachments, or canonicalperceptions) toPOST /api/placement/v1/turnwithchannel: "voice"andstream: true. Pipeevent: tokendirectly into your TTS engine.cURLPOST /api/placement/v1/turn (voice + gestures + vision)curl -N -X POST https://api.kami.bot/api/placement/v1/turn \ -H "Authorization: Bearer $KAMI_PLACEMENT_KEY" \ -H "Content-Type: application/json" \ -d '{ "place": "dm", "senderId": "player_42", "senderName": "Maya", "channel": "voice", "stream": true, "text": "Whoa, look at this artifact I just found!", "visualCue": "Player holds up a glowing blue crystal in a dark cavern.", "bodyGestures": [ { "name": "wave", "when": "greeting a player" }, { "name": "lean_in", "when": "examining something intriguing" } ] }'SSE frames emit event: token with { text, token } for incremental TTS, followed by event: done containing action.speech and action.scene (your chosen gesture). - 2
Close the episode to consolidate long-term memory
When a voice call ends or a player leaves the zone, call
/episodes/end. Kami evicts the warm RAM cache and reflects on what happened so the next encounter picks up naturally.cURLPOST /api/placement/v1/episodes/endcurl -X POST https://api.kami.bot/api/placement/v1/episodes/end \ -H "Authorization: Bearer $KAMI_PLACEMENT_KEY" \ -H "Content-Type: application/json" \ -d '{ "place": "dm", "senderId": "player_42", "senderName": "Maya", "consolidate": true }' - 3
One-call GDPR user erasure
Whenever a user deletes their account in your app, wipe every message, episode, and memory row scoped to that
senderIdinside your placement with one DELETE call.cURLDELETE /api/placement/v1/users/:senderId/datacurl -X DELETE https://api.kami.bot/api/placement/v1/users/player_42/data \ -H "Authorization: Bearer $KAMI_PLACEMENT_KEY"