Tolan - 立群

zlwu b2a8356200 提交代码 hace 10 meses
backend b2a8356200 提交代码 hace 10 meses
frontend b2a8356200 提交代码 hace 10 meses
memory_summaries 3062de5569 提交 hace 10 meses
sendintlmsg 5f4fc7d499 提交 hace 10 meses
sendmsg b2a8356200 提交代码 hace 10 meses
ssl 27fda2d01e tolan字样改成lyrria hace 11 meses
提示词包 27fda2d01e tolan字样改成lyrria hace 11 meses
需求 038bcb16a6 Initial commit: Tolan AI 英语语音助手项目 hace 1 año
项目文档 b2a8356200 提交代码 hace 10 meses
.cursorrules 0fecf85e53 提交 hace 11 meses
.gitignore 038bcb16a6 Initial commit: Tolan AI 英语语音助手项目 hace 1 año
README.md 27fda2d01e tolan字样改成lyrria hace 11 meses
lumi_memory.py 7737b0b91a 提交 hace 10 meses
nginx.conf 58a3247484 提交 hace 10 meses
prompts-b1.py 7a068a8ec6 提交代码 hace 10 meses
prompts-v0.2.1.py 6ecb313313 提交 hace 10 meses
prompts-v0.3.py 7737b0b91a 提交 hace 10 meses

README.md

Lyrria - 语音聊天助手

语音交互英语学习应用,通过与动画IP对话练习英语口语。

技术栈

前端

  • React 18 + TypeScript
  • Zustand (状态管理)
  • Ant Design (UI组件)
  • Lottie (动画)
  • WebSocket (实时通信)
  • Web Audio API (音频处理)

后端

  • FastAPI (Web框架)
  • WebSocket (实时通信)
  • DashScope (阿里云Qwen模型)
  • STT: paraformer-realtime-v2
  • LLM: qwen-plus
  • TTS: qwen3-tts-flash

快速开始

1. 后端

cd backend
python -m pip install -r requirements.txt
cp .env.example .env  # 配置API Key
python main.py

2. 前端

cd frontend
npm install
cp .env.example .env  # 配置WebSocket地址
npm run dev

访问

注意: 使用自签名证书,浏览器会提示不安全,点击"继续访问"即可

核心功能

  • 实时语音录制和传输
  • 语音识别 (STT)
  • 智能对话 (LLM)
  • 语音合成 (TTS)
  • 动画IP三状态切换(等、听、说)
  • 情感表达

配置

API Key

在 backend/.env 中配置:

DASHSCOPE_API_KEY=your-api-key

WebSocket地址

在 frontend/.env 中配置:

VITE_WS_URL=wss://localhost:8000/ws