diff --git a/README.md b/README.md index f3e995de..7d74cd3b 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,12 @@ -# LiveKit: Real-time video, audio and data for developers +# LiveKit: Realtime infrastructure for voice, video, and AI agents -[LiveKit](https://livekit.io) is an open source project that provides scalable, multi-user conferencing based on WebRTC. -It's designed to provide everything you need to build real-time video audio data capabilities in your applications. +[LiveKit](https://livekit.com) is an open source platform for building voice, video, and physical AI agents. +This repository is the LiveKit server: a scalable, distributed WebRTC SFU that moves realtime audio, video, and +data between people, devices, and AI models. The SDKs, agents frameworks, and companion services are linked in +the table at the bottom of this page. LiveKit's server is written in Go, using the awesome [Pion WebRTC](https://github.com/pion/webrtc) implementation. @@ -27,211 +29,82 @@ LiveKit's server is written in Go, using the awesome [Pion WebRTC](https://githu > [!IMPORTANT] > If you're building Voice AI, [LiveKit Agents](https://github.com/livekit/agents) is the SDK for code-first realtime voice agents. STT, LLM, TTS, turn detection, [expressive speech](https://docs.livekit.io/agents/models/tts/expressive/), [keyterm accuracy](https://docs.livekit.io/agents/models/stt/keyterms/), tool usage, and telephony all come bundled in the framework. It's available in both [Python](https://github.com/livekit/agents) and [Node.js](https://github.com/livekit/agents-js). > ->```python -># agent.py ->from livekit import agents ->from livekit.agents import Agent, AgentServer, AgentSession, STTContextOptions, TurnHandlingOptions, inference +> ```python +> # agent.py +> from livekit import agents +> from livekit.agents import Agent, AgentServer, AgentSession, STTContextOptions, TurnHandlingOptions, inference > ->server = AgentServer() +> server = AgentServer() > > ->@server.rtc_session(agent_name="my-agent") ->async def my_agent(ctx: agents.JobContext): -> session = AgentSession( -> stt=inference.STT(model="deepgram/nova-3", language="multi"), -> llm=inference.LLM(model="google/gemma-4-31b-it"), -> tts=inference.TTS(model="inworld/inworld-tts-2", voice="Ashley"), -> turn_handling=TurnHandlingOptions(turn_detection=inference.TurnDetector()), -> stt_context_options=STTContextOptions(keyterms=["LiveKit", "Acme Corp"]), -> expressive=True, -> ) -> await session.start(room=ctx.room, agent=Agent(instructions="You are a helpful voice AI assistant.")) -> await session.generate_reply(instructions="Greet the user and offer your assistance.") +> @server.rtc_session(agent_name="my-agent") +> async def my_agent(ctx: agents.JobContext): +> session = AgentSession( +> stt=inference.STT(model="deepgram/nova-3", language="multi"), +> llm=inference.LLM(model="google/gemma-4-31b-it"), +> tts=inference.TTS(model="inworld/inworld-tts-2", voice="Ashley"), +> turn_handling=TurnHandlingOptions(turn_detection=inference.TurnDetector()), +> stt_context_options=STTContextOptions(keyterms=["LiveKit", "Acme Corp"]), +> expressive=True, +> ) +> await session.start(room=ctx.room, agent=Agent(instructions="You are a helpful voice AI assistant.")) +> await session.generate_reply(instructions="Greet the user and offer your assistance.") > > ->if __name__ == "__main__": -> agents.cli.run_app(server) ->``` +> if __name__ == "__main__": +> agents.cli.run_app(server) +> ``` > ->Models come from [LiveKit Inference](https://docs.livekit.io/agents/models/) with no per-provider API keys, and LiveKit Cloud handles [deployment](https://docs.livekit.io/deploy/agents/) and [observability](https://docs.livekit.io/deploy/observability/). Visit the docs for more info at [docs.livekit.io/agents](https://docs.livekit.io/agents/). +> Models come from [LiveKit Inference](https://docs.livekit.io/agents/models/) with no per-provider API keys, and LiveKit Cloud handles [deployment](https://docs.livekit.io/deploy/agents/) and [observability](https://docs.livekit.io/deploy/observability/). Visit the docs for more info at [docs.livekit.io/agents](https://docs.livekit.io/agents/). +## Used in production by + +LiveKit carries billions of calls a year for companies including Salesforce, Nvidia, Oracle, SAP, +Deutsche Telekom, Spotify, Tinder, Coursera, Headspace, Skydio, Retell, Decagon, Cresta, and HeyGen. Read how +[Assort Health](https://livekit.com/customers/assort-health), [Playback](https://livekit.com/customers/playback), and +[Polymath Robotics](https://livekit.com/customers/polymath) use it, or see [more customers](https://livekit.com/customers). + ## Features - Scalable, distributed WebRTC SFU (Selective Forwarding Unit) -- Modern, full-featured client SDKs +- People, devices, and AI agents join the same room as participants, with + [agent dispatch](https://docs.livekit.io/agents/server/agent-dispatch/) to route agents in automatically or on demand +- Modern, full-featured SDKs for web, mobile, desktop, embedded, and server - Built for production, supports JWT authentication - Robust networking and connectivity, UDP/TCP/TURN - Easy to deploy: single binary, Docker or Kubernetes - Advanced features including: - - [speaker detection](https://docs.livekit.io/home/client/tracks/subscribe/#speaker-detection) - - [simulcast](https://docs.livekit.io/home/client/tracks/publish/#video-simulcast) - - [end-to-end optimizations](https://blog.livekit.io/livekit-one-dot-zero/) - - [selective subscription](https://docs.livekit.io/home/client/tracks/subscribe/#selective-subscription) - - [moderation APIs](https://docs.livekit.io/home/server/managing-participants/) - - end-to-end encryption + - [speaker detection](https://docs.livekit.io/transport/media/subscribe/) + - [simulcast](https://docs.livekit.io/transport/media/publish/) + - [selective subscription](https://docs.livekit.io/transport/media/subscribe/) + - [moderation APIs](https://docs.livekit.io/intro/basics/rooms-participants-tracks/participants/) + - [end-to-end encryption](https://docs.livekit.io/transport/media/encryption/) - SVC codecs (VP9, AV1) - - [webhooks](https://docs.livekit.io/home/server/webhooks/) - - [distributed and multi-region](https://docs.livekit.io/home/self-hosting/distributed/) + - [data tracks](https://docs.livekit.io/transport/data/data-tracks/) for low-latency telemetry and teleoperation + - [telephony](https://docs.livekit.io/telephony/) over SIP + - [webhooks](https://docs.livekit.io/intro/basics/rooms-participants-tracks/webhooks-events/) + - [distributed and multi-region](https://docs.livekit.io/transport/self-hosting/distributed/) ## Documentation & Guides https://docs.livekit.io +Working with a coding agent? Give it the [LiveKit Docs MCP server](https://docs.livekit.io/mcp/), or start with the +[coding agents guide](https://docs.livekit.io/intro/coding-agents/). + ## Live Demos +- [Talk to a voice agent](https://livekit.com) built with LiveKit Agents - [LiveKit Meet](https://meet.livekit.io) ([source](https://github.com/livekit-examples/meet)) - [Spatial Audio](https://spatial-audio-demo.livekit.io/) ([source](https://github.com/livekit-examples/spatial-audio)) - Livestreaming from OBS Studio ([source](https://github.com/livekit-examples/livestream)) -- [AI voice assistant using ChatGPT](https://livekit.io/kitt) ([source](https://github.com/livekit-examples/kitt)) - -## Ecosystem - -- [Agents](https://github.com/livekit/agents): build real-time multimodal AI applications with programmable backend participants -- [Egress](https://github.com/livekit/egress): record or multi-stream rooms and export individual tracks -- [Ingress](https://github.com/livekit/ingress): ingest streams from external sources like RTMP, WHIP, HLS, or OBS Studio - -## SDKs & Tools - -### Client SDKs - -Client SDKs enable your frontend to include interactive, multi-user experiences. - -
| Language | -Repo | -- Declarative UI - | -Links | -
|---|---|---|---|
| JavaScript (TypeScript) | -- client-sdk-js - | -- React - | -- docs - | - JS example - | - React example - | -
| Swift (iOS / MacOS) | -- client-sdk-swift - | -Swift UI | -- docs - | - example - | -
| Kotlin (Android) | -- client-sdk-android - | -Compose | -- docs - | - example - | - Compose example - | -
| Flutter (all platforms) | -- client-sdk-flutter - | -native | -- docs - | - example - | -
| Unity WebGL | -- client-sdk-unity-web - | -- | - docs - | -
| React Native (beta) | -- client-sdk-react-native - | -native | -- |
| Rust | -- client-sdk-rust - | -- | - |