{"id":40734283,"url":"https://github.com/dairoot/xiaozhi-webrtc","last_synced_at":"2026-01-21T14:38:47.994Z","repository":{"id":310227608,"uuid":"1039146847","full_name":"dairoot/xiaozhi-webrtc","owner":"dairoot","description":"AI, your emotional partner","archived":false,"fork":false,"pushed_at":"2026-01-14T11:49:57.000Z","size":41031,"stargazers_count":111,"open_issues_count":4,"forks_count":39,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T15:45:14.194Z","etag":null,"topics":["chatbot","xiaozhi","xiaozhi-esp32"],"latest_commit_sha":null,"homepage":"https://xiaozhi.dairoot.cn","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dairoot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-16T15:24:11.000Z","updated_at":"2026-01-14T12:17:46.000Z","dependencies_parsed_at":"2025-09-15T14:34:21.065Z","dependency_job_id":null,"html_url":"https://github.com/dairoot/xiaozhi-webrtc","commit_stats":null,"previous_names":["dairoot/xiaozhi-webrtc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dairoot/xiaozhi-webrtc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dairoot%2Fxiaozhi-webrtc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dairoot%2Fxiaozhi-webrtc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dairoot%2Fxiaozhi-webrtc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dairoot%2Fxiaozhi-webrtc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dairoot","download_url":"https://codeload.github.com/dairoot/xiaozhi-webrtc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dairoot%2Fxiaozhi-webrtc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28634883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","xiaozhi","xiaozhi-esp32"],"created_at":"2026-01-21T14:38:47.432Z","updated_at":"2026-01-21T14:38:47.988Z","avatar_url":"https://github.com/dairoot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Banners](docs/images/banner.png)](https://github.com/dairoot/xiaozhi-webrtc)\n\n[English](README.en.md) | 简体中文\n\n# XiaoZhi WebRTC\n\n[![Python](https://img.shields.io/badge/Python-3.9+-blue.svg)](https://www.python.org/)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)\n\n一个基于 **WebRTC** 的 AI 实时音视频互动项目，致力于打造你的专属、贴心且充满温度的情感伴侣。\n\n---\n\n## ✨ 功能特性\n- **XiaoZhi 核心能力**：融合视觉多模态理解、智能问答与 MCP 控制，带来更强大的交互与处理能力。\n- **实时音视频沟通**：超低延迟与高清体验，让交流顺畅自然。\n- **Live2D 动态呈现**：拟真互动与沉浸式表现，提升亲和力与互动感。\n---\n\n## 🎯  在线体验\n\n[https://xiaozhi.dairoot.cn](https://xiaozhi.dairoot.cn)\n\n\u003e 💡 **提示**: 由于部署在海外服务器，访问会稍微卡顿（仅体验）\n\nhttps://github.com/user-attachments/assets/d985aacc-b07d-4874-a10a-c2139bd6c4bf\n\n---\n\n## 🚀 快速开始\n\n```bash\n# 克隆项目\ngit clone https://github.com/dairoot/xiaozhi-webrtc.git\ncd xiaozhi-webrtc\n```\n\n#### 方法一：使用 uv（推荐）\n\n```bash\n# 安装 uv\npip install uv\n\n# 安装项目依赖\nuv sync\n\n# 运行项目\nuv run main.py\n```\n\n#### 方法二：使用 Docker\n\n```bash\n# 使用 Docker Compose 运行\ndocker compose up\n```\n\n#### 方法三：传统 pip 安装\n\n```bash\n# 创建虚拟环境\npython -m venv venv\nsource venv/bin/activate  # Linux/Mac\n# 或 venv\\Scripts\\activate  # Windows\n\n# 安装依赖\npip install -e .\n\n# 运行项目\npython main.py\n```\n---\n\n## ⚙️ 部署要求\n\n### 端口要求\n\nWebRTC 需要以下端口用于实时音视频通信：\n\n| 端口 | 协议 | 用途 |\n|------|------|------|\n| 3478 | UDP | STUN 服务 |\n| 49152–65535 | UDP | WebRTC 媒体流端口（默认） |\n\n**注意：** 确保防火墙允许这些端口的通信，特别是在生产环境中部署时。\n\n\n### HTTPS 要求\n\n**线上环境必须使用 HTTPS**：WebRTC 需要访问摄像头和麦克风，现代浏览器出于安全考虑只允许在 HTTPS 环境下使用这些功能。\n\n## 📖 使用说明\n\n1. **启动服务**: 运行项目后，服务将在 `http://localhost:51000` 或者 `https://yourdomain.com`  启动\n2. **访问页面**: 在浏览器中打开上述地址\n3. **授权权限**: 允许浏览器访问摄像头和麦克风\n4. **开始通信**: 点击开始按钮建立 WebRTC 连接\n\n**注意**: 生产环境必须使用 HTTPS，否则 WebRTC 功能将无法正常工作。\n\n---\n## 🫡 致敬\n- 虾哥 [xiaozhi-esp32](https://github.com/78/xiaozhi-esp32) 项目\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdairoot%2Fxiaozhi-webrtc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdairoot%2Fxiaozhi-webrtc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdairoot%2Fxiaozhi-webrtc/lists"}