# voice-chat-ai **Repository Path**: dev_cpg/voice-chat-ai ## Basic Information - **Project Name**: voice-chat-ai - **Description**: voice-chat-ai(智能语音对话系统) - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-08 - **Last Updated**: 2026-04-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # VCS - Voice Chat System 智能语音对话系统,基于 CoPaw Agent 实现语音输入、AI 对话、语音输出。 ## 功能特性 - 🎤 **ASR 语音识别** - 腾讯云语音识别 - 🤖 **LLM 对话** - CoPaw Agent (MiniMax) - 🔊 **TTS 语音合成** - Edge TTS / 豆包 TTS - 💬 **语音对话** - 语音输入 → AI 理解 → 语音回复 ## 技术架构 ``` 🎤 麦克风 → ASR → LLM → TTS → 🔊 播放 ``` ## 安装 ```bash # 克隆项目 git clone https://gitee.com/dev_cpg/voice-chat-ai.git cd voice-chat-ai # 创建虚拟环境 python -m venv .venv source .venv/bin/activate # Linux/Mac # .venv\Scripts\activate # Windows # 安装依赖 pip install -r requirements.txt # 安装腾讯云 SDK pip install tencentcloud-sdk-python ``` ## 配置 创建 `.env` 文件: ```bash # 腾讯云 ASR export TENCENT_SECRET_ID="your_secret_id" export TENCENT_SECRET_KEY="your_secret_key" # 豆包 TTS (可选) export DOUBAO_APP_ID="your_app_id" export DOUBAO_ACCESS_KEY="your_access_key" ``` ## 使用 ```bash # 运行语音对话 python voice_robust.py ``` ## 项目结构 ``` voice-chat-ai/ ├── src/ │ ├── asr_tencent.py # 腾讯云 ASR │ ├── tts_edge.py # Edge TTS │ ├── tts_doubao.py # 豆包 TTS │ ├── llm_copaw.py # CoPaw Agent LLM │ └── core.py # 核心客户端 ├── voice_robust.py # 主程序 └── requirements.txt ``` ## 注意事项 ⚠️ 本项目仅供参考学习,语音对话效果可能不如预期。 ## License MIT License