WebRTC & LiveKit
For custom voice experiences beyond the widget, connect directly to the thinnestAI voice engine using WebRTC via LiveKit. Build your own call UI, integrate into existing apps, or create unique voice-first experiences.Overview
thinnestAI uses LiveKit as its real-time infrastructure. LiveKit handles WebRTC connection management, audio routing, and scaling — you just connect and stream audio.Getting a Session Token
Before connecting, request a session token from the thinnestAI API:Connecting with LiveKit SDK
JavaScript / Browser
React
Python
Mobile (React Native)
Session Parameters
Events
Monitor session state via LiveKit room events:Receiving Transcripts
The voice engine sends real-time transcripts via LiveKit data channels:Architecture
vs Voice Widget
Use WebRTC/LiveKit when you need a custom voice interface. Use the Voice Widget for quick website integration.

