返回顶部
l

livekit-voice实时音视频

LiveKit real-time voice and video infrastructure — create rooms, generate JWT access tokens, manage participants, and record sessions. Open source WebRTC for voice AI agents and real-time communication. Use for building voice agents, video rooms, or real-time audio.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
287
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

livekit-voice

🎧 LiveKit 语音

为 OpenClaw 智能体提供 LiveKit 实时语音/视频基础设施。可创建房间、生成令牌、管理参与者,并与语音 AI 平台集成。

什么是 LiveKit?

LiveKit 是一个开源的 WebRTC 基础设施平台,用于构建实时音频/视频应用。它为语音 AI 智能体、视频会议、直播等场景提供支持。

自托管 vs 云服务:

  • - LiveKit 云服务 — 托管服务,无需维护基础设施
  • 自托管 — 通过 Docker/Kubernetes 部署在自己的服务器上

环境要求

变量必需描述
LIVEKITAPIKEYLiveKit API 密钥
LIVEKITAPISECRET
✅ | LiveKit API 密钥 | | LIVEKIT_URL | ✅ | LiveKit 服务器 URL(例如 wss://your-project.livekit.cloud) |

快速开始

bash

创建房间


python3 {baseDir}/scripts/livekit_api.py create-room my-room

带选项创建房间

python3 {baseDir}/scripts/livekit_api.py create-room my-room --max-participants 10 --empty-timeout 300

为参与者生成访问令牌

python3 {baseDir}/scripts/livekit_api.py token my-room --identity user123 --name John

生成带特定权限的令牌

python3 {baseDir}/scripts/livekit_api.py token my-room --identity agent --can-publish --can-subscribe

列出活跃房间

python3 {baseDir}/scripts/livekit_api.py list-rooms

列出房间内的参与者

python3 {baseDir}/scripts/livekit_api.py participants my-room

删除房间

python3 {baseDir}/scripts/livekit_api.py delete-room my-room

开始录制(Egress)

python3 {baseDir}/scripts/livekit_api.py record my-room --output s3://bucket/recording.mp4

命令

create-room <名称>

创建新的 LiveKit 房间。
  • - --max-participants N — 限制参与者数量
  • --empty-timeout N — 空房间自动关闭前的等待秒数(默认 300)

token <房间>

为参与者生成 JWT 访问令牌。
  • - --identity ID — 参与者身份标识(必需)
  • --name NAME — 显示名称
  • --can-publish — 允许发布音频/视频
  • --can-subscribe — 允许订阅其他参与者
  • --ttl N — 令牌有效期(秒,默认 3600)

list-rooms

列出所有活跃房间及其参与者数量。

participants <房间>

列出房间内的参与者及其连接状态和轨道信息。

delete-room <名称>

删除/关闭房间并断开所有参与者连接。

record <房间>

开始房间的 Egress 录制。
  • - --output URL — 输出目标(S3、GCS 或本地路径)

语音 AI 集成

LiveKit 是许多语音 AI 平台的骨干基础设施:

  • - Vapi — 使用 LiveKit 进行实时语音 AI 智能体通话
  • ElevenLabs — 将 TTS 音频流传输到 LiveKit 房间
  • OpenAI Realtime — 将 GPT-4o 语音连接到 LiveKit 参与者

智能体模式

  1. 1. 创建 LiveKit 房间
  2. 为人类和 AI 智能体生成令牌
  3. AI 智能体加入,订阅人类音频
  4. 处理音频 → STT → LLM → TTS → 发布回房间
  5. 结果:与 AI 进行实时语音对话

致谢

M. Abidi 构建 | agxntsix.ai YouTube | GitHub 属于 OpenClaw 智能体的 AgxntSix 技能套件 的一部分。

📅 需要为您的业务设置 OpenClaw? 预约免费咨询

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 livekit-voice-1776208425 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 livekit-voice-1776208425 技能

通过命令行安装

skillhub install livekit-voice-1776208425

下载

⬇ 下载 livekit-voice v1.0.0(免费)

文件大小: 4.59 KB | 发布时间: 2026-4-15 11:24

v1.0.0 最新 2026-4-15 11:24
- Initial release of livekit-voice skill.
- Provides commands to create rooms, manage participants, generate JWT tokens, and start recordings using LiveKit API.
- Supports both LiveKit Cloud and self-hosted deployment.
- Designed for building and integrating real-time voice/video features with voice AI agents and platforms.
- Includes quick start instructions and environment variable setup.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部