[试试看] [English Docs]
> 深受 [Neuro-sama](https://www.youtube.com/@Neurosama) 启发 与其他 AI 和 LLM 驱动的 VTuber 开源项目不同,アイリ VTuber 从开始开发的第一天开始就支持多种 Web 技术,涵盖诸如 [WebGPU](https://www.w3.org/TR/webgpu/)、[WebAudio](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API)、[Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers)、[WebAssembly](https://webassembly.org/)、[WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) 等已经广泛应用或仍在大量实验的 API。 这意味着 **アイリ VTuber 能够在现代浏览器和设备上运行**,甚至能够在移动设备上运行(已经通过 PWA 支持),这为我们(贡献者们)带来了更多的可能性,使我们能够构建和扩展 アイリ VTuber 的外部功能,使其更上一层楼,而与此同时也依然给予用户灵活配置的可能性,可以选择性地在不同设备上启用会需要 TCP 连接或其他非 Web 技术的功能,例如连接到 Discord 的语音频道一起开黑,或是和你和你的朋友们一起玩 Minecraft(我的世界)、Factorio(异星工厂)。 > [!NOTE] > > 我们仍处于早期开发阶段,正在寻求有才华的开发人员加入我们,帮助我们将 アイリ VTuber 变为现实。 > > 如果你不熟悉 Vue.js、TypeScript 和这个项目所需的开发工具,也没关系,你可以作为艺术家、设计师、运营策划加入我们,甚至帮助我们启动我们的第一个直播。 > > 即使您是 React 或 Svelte,甚至是 Solid 的忠实粉丝也没关系,我们也欢迎您的加入,您可以自己创建一个子目录,添加您希望在 アイリ VTuber 中看到的功能,或想实验性支持的功能。 > > 我们正在寻找的领域(和相关项目): > > - Live2D 模型师 > - VRM 模型师 > - VRChat 模型设计师 > - 计算机视觉(CV) > - 强化学习(RL) > - 语音识别 > - 语音合成 > - ONNX 推理运行时 > - Transformers.js > - vLLM > - WebGPU > - Three.js > - WebXR (也可以看看我们在 @moeru-ai 组织下另外的[这个项目](https://github.com/moeru-ai/n3p6)) > > **如果你已经感兴趣了,为什么不来这里和大家打个招呼呢?[Would like to join part of us to build Airi?](https://github.com/moeru-ai/airi/discussions/33)** ## 当前进度 能够 - [x] 大脑 - [x] 玩 [Minecraft](https://www.minecraft.net) - [x] 玩 [Factorio](https://www.factorio.com) - [x] 在 [Telegram](https://telegram.org) 聊天 - [x] 在 [Discord](https://discord.com) 聊天 - [x] 耳朵 - [x] 浏览器音频输入 - [x] [Discord](https://discord.com) 音频输入 - [x] 客户端端语音识别 - [x] 客户端端说话检测 - [x] 嘴巴 - [x] ElevenLabs 语音合成 - [x] 身体 - [x] VRM 支持 - [x] 控制 VRM 模型 - [x] VRM 模型动画 - [x] 自动眨眼 - [x] 自动看 - [x] 空闲眼睛移动 - [x] Live2D 支持 - [x] 控制 Live2D 模型 - [x] Live2D 模型动画 - [x] 自动眨眼 - [x] 自动看 - [x] 空闲眼睛移动 ## 开发 ```shell pnpm i ``` ```shell pnpm dev ``` ## 原生支持的 LLM API 提供商列表(由 [xsai](https://github.com/moeru-ai/xsai) 驱动) - [x] [OpenRouter](https://openrouter.ai/) - [x] [vLLM](https://github.com/vllm-project/vllm) - [x] [SGLang](https://github.com/sgl-project/sglang) - [x] [Ollama](https://github.com/ollama/ollama) - [x] [Google Gemini](https://developers.generativeai.google) - [x] [OpenAI](https://platform.openai.com/docs/guides/gpt/chat-completions-api) - [ ] [Azure OpenAI API](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference) - [x] [Anthropic Claude](https://anthropic.com) - [ ] [AWS Claude](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference) - [x] [深度求索 DeepSeek](https://www.deepseek.com/) - [x] [通义千问 Qwen](https://help.aliyun.com/document_detail/2400395.html) - [x] [xAI](https://x.ai/) - [x] [Groq](https://wow.groq.com/) - [x] [Mistral](https://mistral.ai/) - [x] [Cloudflare Workers AI](https://developers.cloudflare.com/workers-ai/) - [x] [Together.ai](https://www.together.ai/) - [x] [Fireworks.ai](https://www.together.ai/) - [x] [Novita](https://www.novita.ai/) - [x] [智谱](https://bigmodel.cn) - [x] [硅基流动](https://cloud.siliconflow.cn/i/rKXmRobW) - [x] [阶跃星辰](https://platform.stepfun.com/) - [x] [百川](https://platform.baichuan-ai.com) - [x] [Minimax](https://api.minimax.chat/) - [x] [月之暗面](https://platform.moonshot.cn/) - [x] [腾讯混元](https://cloud.tencent.com/document/product/1729) - [ ] [讯飞星火](https://www.xfyun.cn/doc/spark/Web.html) - [ ] [火山引擎(豆包)](https://www.volcengine.com/experience/ark?utm_term=202502dsinvite&ac=DSASUQY5&rc=2QXCA1VI) ## 从这个项目诞生的子项目 - [`unspeech`](https://github.com/moeru-ai/unspeech): 用于代理 `/audio/transcriptions` 和 `/audio/speech` 的代理服务器实现,类似 LiteLLM 但面向任何 ASR 和 TTS - [`hfup`](https://github.com/moeru-ai/airi/tree/main/packages/hfup): 帮助部署、打包到 HuggingFace Spaces 的工具集 - [`@proj-airi/drizzle-duckdb-wasm`](https://github.com/moeru-ai/airi/tree/main/packages/drizzle-duckdb-wasm/README.md): DuckDB WASM 的 Drizzle ORM driver 驱动 - [`@proj-airi/duckdb-wasm`](https://github.com/moeru-ai/airi/tree/main/packages/duckdb-wasm/README.md): 让 `@duckdb/duckdb-wasm` 更好用的封装 - [`@proj-airi/lobe-icons`](https://github.com/moeru-ai/airi/tree/main/packages/lobe-icons): 为 [lobe-icons](https://github.com/lobehub/lobe-icons) 漂亮的 AI & LLM 图标制作的 Iconify JSON 封装,支持 Tailwind 和 UnoCSS - [`@proj-airi/elevenlabs`](https://github.com/moeru-ai/airi/tree/main/packages/elevenlabs): ElevenLabs API 的 TypeScript 定义 - [Airi Factorio](https://github.com/moeru-ai/airi-factorio): 允许 Airi 玩耍 Factorio - [Factorio RCON API](https://github.com/nekomeowww/factorio-rcon-api): Factorio 无头服务器控制台的 RESTful API 封装 - [`autorio`](https://github.com/moeru-ai/airi-factorio/tree/main/packages/autorio): Factorio 自动化库 - [`tstl-plugin-reload-factorio-mod](https://github.com/moeru-ai/airi-factorio/tree/main/packages/tstl-plugin-reload-factorio-mod): 开发时支持热重载 Factorio 模组 - [🥺 SAD](https://github.com/moeru-ai/sad): 自托管和浏览器运行 LLM 的文档和说明 ```mermaid %%{ init: { 'flowchart': { 'curve': 'catmullRom' } } }%% flowchart TD Core("Core") Unspeech["unspeech"] DBDriver["@proj-airi/drizzle-duckdb-wasm"] MemoryDriver["[WIP] Memory Alaya"] DB1["@proj-airi/duckdb-wasm"] ICONS["@proj-airi/lobe-icons"] UI("@proj-airi/stage-ui") Stage("Stage") F_AGENT("Factorio Agent") F_API["Factorio RCON API"] F_MOD1["autorio"] SVRT["@proj-airi/server-runtime"] MC_AGENT("Minecraft Agent") XSAI["xsai"] subgraph Airi DB1 --> DBDriver --> MemoryDriver --> Memory --> Core ICONS --> UI --> Stage --> Core Core --> STT Core --> SVRT end STT --> |Speaking|Unspeech SVRT --> |Playing Factorio|F_AGENT SVRT --> |Playing Minecraft|MC_AGENT subgraph Factorio Agent F_AGENT --> F_API -..- factorio-server subgraph factorio-server-wrapper subgraph factorio-server F_MOD1 end end end subgraph Minecraft Agent MC_AGENT --> Mineflayer -..- minecraft-server subgraph factorio-server-wrapper subgraph factorio-server F_MOD1 end end end XSAI --> Core XSAI --> F_AGENT XSAI --> MC_AGENT ``` ```mermaid %%{ init: { 'flowchart': { 'curve': 'catmullRom' } } }%% flowchart TD subgraph deploy&bundle direction LR HFUP["hfup"] HF[/"HuggingFace Spaces"\] HFUP -...- UI -...-> HF HFUP -...- whisper-webgpu -...-> HF HFUP -...- moonshine-web -...-> HF end ``` ## 使用的模型 - [onnx-community/whisper-large-v3-turbo · Hugging Face](https://huggingface.co/onnx-community/whisper-large-v3-turbo) ## 类似项目 - [SugarcaneDefender/z-waif](https://github.com/SugarcaneDefender/z-waif): Great at gaming, autonomous, and prompt engineering - [semperai/amica](https://github.com/semperai/amica/): Great at VRM, WebXR - [elizaOS/eliza](https://github.com/elizaOS/eliza): Great examples and software engineering on how to integrate agent into various of systems and APIs - [ardha27/AI-Waifu-Vtuber](https://github.com/ardha27/AI-Waifu-Vtuber): Great about Twitch API integrations - [InsanityLabs/AIVTuber](https://github.com/InsanityLabs/AIVTuber): Nice UI and UX - [IRedDragonICY/vixevia](https://github.com/IRedDragonICY/vixevia) - [t41372/Open-LLM-VTuber](https://github.com/t41372/Open-LLM-VTuber) - [PeterH0323/Streamer-Sales](https://github.com/PeterH0323/Streamer-Sales) ## 项目状态  ## 鸣谢 - [pixiv/ChatVRM](https://github.com/pixiv/ChatVRM) - [josephrocca/ChatVRM-js: A JS conversion/adaptation of parts of the ChatVRM (TypeScript) code for standalone use in OpenCharacters and elsewhere](https://github.com/josephrocca/ChatVRM-js) - UI 和样式的设计受 [Cookard](https://store.steampowered.com/app/2919650/Cookard/),[UNBEATABLE](https://store.steampowered.com/app/2240620/UNBEATABLE/),以及 [Sensei! I like you so much!](https://store.steampowered.com/app/2957700/_/),还有 [Ayame by Mercedes Bazan](https://dribbble.com/shots/22157656-Ayame) 和 [Wish by Mercedes Bazan](https://dribbble.com/shots/24501019-Wish) 的作品启发 - [mallorbc/whisper_mic](https://github.com/mallorbc/whisper_mic) - [`xsai`](https://github.com/moeru-ai/xsai):实现了相当数量的包来与 LLM 和模型交互,像 [Vercel AI SDK](https://sdk.vercel.ai/) 但是更小