LiveKit Agents
livekit / agents
实时语音/视频 Agent 框架:WebRTC 传输、语音活动检测、打断、工具调用与多模态管线放在一套运行时里。A realtime voice/video agent framework: WebRTC transport, VAD, interruption, tool calls and multimodal pipelines in one runtime.
为什么选Why choose it
- 端到端实时链路是它的主场:WebRTC 传输、VAD、打断与轮次控制都有现成实现。Built for the realtime path: WebRTC transport, VAD, interruption and turn control are already implemented.
- Python 框架可接多家 STT/TTS/LLM,适合做电话客服、实时助手与语音 Agent。The Python framework connects to multiple STT/TTS/LLM vendors, suited to phone agents, live assistants and voice agents.
- 与 LiveKit Cloud / 自托管 SFU 配套,房间、参与者与录制权限可分开管。Pairs with LiveKit Cloud or a self-hosted SFU, with rooms, participants and recording permissions managed separately.
不适合Not for
只做离线转写或批量音频处理,不需要实时房间与 WebRTC。Offline transcription or batch audio does not need realtime rooms and WebRTC.
希望零代码搭语音机器人,先看平台型产品;这套要写管线与部署。For a no-code voice bot, start with a platform product; this expects pipeline and deployment work.
最小上手Minimum setup
- 读官方 README / quickstart,确认 Python / LiveKit 版本与系统依赖。Read the official README and quickstart; confirm the runtime version and system dependencies.
- 按官方最小示例跑通 语音 Agent 最小房间,记录端口、密钥与数据路径。Run the smallest voice-agent room example and record ports, keys and data paths.
- 换成自己的 1–2 个样本,观察延迟、并发与失败模式;不要先用生产流量压。Try one or two of your own cases and watch latency, concurrency and failure modes; do not start with production traffic.
依赖与成本Dependencies and cost
Python 运行时 + LiveKit server(Cloud 或自托管)+ STT/TTS/LLM 凭据;生产要 TURN、并发与录制存储。Check runtime, model weights and external service dependencies in the README.
许可与使用边界License and usage boundaries
代码 Apache-2.0;LiveKit Cloud、模型与语音供应商另计条款,商用前核对。Code is Apache-2.0; model weights, training data and generated content may have separate terms — check each before commercial use.
开源不等于可商用:GPL / AGPL 有传染性;代码许可、模型许可、生成内容许可要分开看。上线前读仓库 LICENSE 与模型卡,必要时让法务确认。Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.
替代与相邻Alternatives and neighbors
- Pipecat — 生产可用Production,面向语音与多模态应用的实时管线框架:把 transport、VAD、STT、LLM、TTS 与打断串成可观测的帧流。A realtime pipeline framework for voice and multimodal apps: transport, VAD, STT, LLM, TTS and interruption as an observable frame stream.
- Whisper — 先试这个Start here,OpenAI 的语音识别模型与推理代码,多语言、带时间戳,安装简单。OpenAI’s speech-recognition models and inference code, multilingual and timestamp-capable, with a simple install.
下一步Next steps
- 打开 GitHub,先读 README、LICENSE、最近 release 与 issue。Open GitHub and read the README, LICENSE, latest release and issues first.
- 按“部署依赖 / 显存 / 数据 / 网络 / 权限”列一张上手清单。Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
- 用一个小样本跑通,再决定是否进生产;不要直接上生产数据。Run a small sample first, then decide on production; never start with production data.
GitHub 仓库 ↗GitHub repository ↗ 文档 ↗Docs ↗ 加入对比Add to compare