Instructions to use MoYoYoTech/VoiceDialogue with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MoYoYoTech/VoiceDialogue with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="MoYoYoTech/VoiceDialogue")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MoYoYoTech/VoiceDialogue", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MoYoYoTech/VoiceDialogue with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: llama cli -hf MoYoYoTech/VoiceDialogue:Q6_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: llama cli -hf MoYoYoTech/VoiceDialogue:Q6_K
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: ./build/bin/llama cli -hf MoYoYoTech/VoiceDialogue:Q6_K
Use Docker
docker model run hf.co/MoYoYoTech/VoiceDialogue:Q6_K
- Llama new
- LM Studio
- Jan
- Ollama
How to use MoYoYoTech/VoiceDialogue with Ollama:
ollama run hf.co/MoYoYoTech/VoiceDialogue:Q6_K
- Unsloth Desktop
- Pi
How to use MoYoYoTech/VoiceDialogue with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MoYoYoTech/VoiceDialogue:Q6_K
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MoYoYoTech/VoiceDialogue:Q6_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use MoYoYoTech/VoiceDialogue with Docker Model Runner:
docker model run hf.co/MoYoYoTech/VoiceDialogue:Q6_K
- Lemonade
How to use MoYoYoTech/VoiceDialogue with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MoYoYoTech/VoiceDialogue:Q6_K
Run and chat with the model
lemonade run user.VoiceDialogue-Q6_K
List all available models
lemonade list
- Hermes Agent
How to use MoYoYoTech/VoiceDialogue with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MoYoYoTech/VoiceDialogue:Q6_K
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default MoYoYoTech/VoiceDialogue:Q6_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use MoYoYoTech/VoiceDialogue with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MoYoYoTech/VoiceDialogue:Q6_K
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "MoYoYoTech/VoiceDialogue:Q6_K" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
README: lead with GUI (clone-and-run) quick start, move CLI after
Browse filesRestructure 快速开始: clone (models bundled via LFS) -> install -> start API server -> open http://localhost:8000/app/ GUI as the primary, recommended path. CLI moved to section 3 (incl. --list-audio-devices/--input-device). Add GUI feature bullet, fix Qwen2.5->Qwen3, bump version badge to 1.1.0, note Git LFS + macOS Apple Silicon.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@@ -26,7 +26,7 @@ library_name: transformers
|
|
| 26 |

|
| 27 |

|
| 28 |

|
| 29 |
-
、大语言模型(LLM)和文本转语音(TTS)的实时语音对话系统
|
| 32 |
|
|
@@ -38,8 +38,9 @@ library_name: transformers
|
|
| 38 |
|
| 39 |
VoiceDialogue 是一个基于 Python 的完整语音对话系统,实现了端到端的语音交互体验。系统采用模块化设计,具备实时、高精度、多角色的特点。
|
| 40 |
|
|
|
|
| 41 |
- 🎤 **实时语音识别**: 高精度中英文语音转录
|
| 42 |
-
- 🤖 **智能对话生成**: 集成
|
| 43 |
- 🔊 **高质量语音合成**: 支持多角色、多风格的语音输出
|
| 44 |
- 🌐 **Web API 服务**: 提供 HTTP 接口,方便集成
|
| 45 |
- ⚡ **低延迟处理**: 优化的音频流处理管道
|
|
@@ -48,47 +49,66 @@ VoiceDialogue 是一个基于 Python 的完整语音对话系统,实现了端
|
|
| 48 |
|
| 49 |
## 🚀 快速开始
|
| 50 |
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
```bash
|
| 54 |
-
# 克隆项目
|
| 55 |
git clone https://huggingface.co/MoYoYoTech/VoiceDialogue
|
| 56 |
cd VoiceDialogue
|
| 57 |
|
| 58 |
-
# 安装依赖
|
| 59 |
pip install uv
|
| 60 |
uv venv
|
| 61 |
source .venv/bin/activate
|
| 62 |
|
| 63 |
WHISPER_COREML=1 CMAKE_ARGS="-DGGML_METAL=on" uv sync
|
| 64 |
|
| 65 |
-
# 安装额外
|
| 66 |
-
|
| 67 |
-
uv pip install
|
| 68 |
-
## 2. 重新安装指定版本的 numpy
|
| 69 |
-
uv pip install numpy==1.26.4
|
| 70 |
```
|
| 71 |
|
| 72 |
> 📖 需要更详细的步骤?请查阅 [安装指南](docs/installation.md),其中包含系统要求和常见问题。
|
| 73 |
|
| 74 |
-
### 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
```bash
|
| 79 |
-
# 启动语音对话
|
| 80 |
python main.py
|
| 81 |
|
| 82 |
-
#
|
| 83 |
python main.py --language en --speaker Heart
|
| 84 |
-
```
|
| 85 |
|
| 86 |
-
#
|
|
|
|
| 87 |
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
python main.py --mode api
|
| 91 |
```
|
|
|
|
| 92 |
> 详细使用方法请参考 [配置指南](docs/configuration.md) 和 [API 服务指南](docs/api-guide.md)。
|
| 93 |
|
| 94 |
## 📚 文档导航
|
|
|
|
| 26 |

|
| 27 |

|
| 28 |

|
| 29 |
+

|
| 30 |
|
| 31 |
一个集成了语音识别(ASR)、大语言模型(LLM)和文本转语音(TTS)的实时语音对话系统
|
| 32 |
|
|
|
|
| 38 |
|
| 39 |
VoiceDialogue 是一个基于 Python 的完整语音对话系统,实现了端到端的语音交互体验。系统采用模块化设计,具备实时、高精度、多角色的特点。
|
| 40 |
|
| 41 |
+
- 🖥️ **图形界面**: 内置 Web 图形界面,浏览器即可使用(选音色、切语言、看实时字幕)
|
| 42 |
- 🎤 **实时语音识别**: 高精度中英文语音转录
|
| 43 |
+
- 🤖 **智能对话生成**: 集成 Qwen3 等大语言模型
|
| 44 |
- 🔊 **高质量语音合成**: 支持多角色、多风格的语音输出
|
| 45 |
- 🌐 **Web API 服务**: 提供 HTTP 接口,方便集成
|
| 46 |
- ⚡ **低延迟处理**: 优化的音频流处理管道
|
|
|
|
| 49 |
|
| 50 |
## 🚀 快速开始
|
| 51 |
|
| 52 |
+
> **最简单的方式**:克隆仓库 → 安装依赖 → 启动 → 在浏览器打开图形界面,即可开始语音对话。
|
| 53 |
+
> 目前仅支持 **macOS(Apple Silicon)**。
|
| 54 |
+
|
| 55 |
+
### 1. 克隆并安装
|
| 56 |
+
|
| 57 |
+
> 仓库已通过 **Git LFS** 内置所需模型(约 12GB),克隆后即可直接运行,无需另外下载。
|
| 58 |
+
> 请先确认已安装 [Git LFS](https://git-lfs.com)(`git lfs install`)。
|
| 59 |
|
| 60 |
```bash
|
| 61 |
+
# 克隆项目(已包含模型,体积较大,请耐心等待)
|
| 62 |
git clone https://huggingface.co/MoYoYoTech/VoiceDialogue
|
| 63 |
cd VoiceDialogue
|
| 64 |
|
| 65 |
+
# 安装依赖(推荐使用 uv)
|
| 66 |
pip install uv
|
| 67 |
uv venv
|
| 68 |
source .venv/bin/activate
|
| 69 |
|
| 70 |
WHISPER_COREML=1 CMAKE_ARGS="-DGGML_METAL=on" uv sync
|
| 71 |
|
| 72 |
+
# 安装额外依赖
|
| 73 |
+
uv pip install kokoro-onnx # kokoro-onnx(英文 TTS)
|
| 74 |
+
uv pip install numpy==1.26.4 # 固定 numpy 版本
|
|
|
|
|
|
|
| 75 |
```
|
| 76 |
|
| 77 |
> 📖 需要更详细的步骤?请查阅 [安装指南](docs/installation.md),其中包含系统要求和常见问题。
|
| 78 |
|
| 79 |
+
### 2. 启动图形界面(推荐)
|
| 80 |
+
|
| 81 |
+
```bash
|
| 82 |
+
python main.py --mode api
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
启动后,在浏览器中打开:**http://localhost:8000/app/**
|
| 86 |
+
|
| 87 |
+
在界面中即可完成全部操作:
|
| 88 |
|
| 89 |
+
- 点击右下角 **⚙️ 设置**,选择**麦克风、回音消除、识别语言、音色**,也可切换**中 / 英界面语言**;
|
| 90 |
+
- 点击 **「开始对话」**,即可与 AI 实时语音对话,**字幕会实时显示**。
|
| 91 |
+
|
| 92 |
+
> 首次启动需要数十秒加载模型(LLM / ASR / TTS),请稍候。
|
| 93 |
+
|
| 94 |
+
### 3. 命令行模式(CLI)
|
| 95 |
+
|
| 96 |
+
如果不需要图形界面,也可以直接在终端运行语音对话:
|
| 97 |
|
| 98 |
```bash
|
| 99 |
+
# 启动语音对话(默认中文)
|
| 100 |
python main.py
|
| 101 |
|
| 102 |
+
# 指定语言与音色
|
| 103 |
python main.py --language en --speaker Heart
|
|
|
|
| 104 |
|
| 105 |
+
# 列出可用音频输入设备(如外置麦克风阵列)
|
| 106 |
+
python main.py --list-audio-devices
|
| 107 |
|
| 108 |
+
# 指定输入设备
|
| 109 |
+
python main.py --input-device <设备索引>
|
|
|
|
| 110 |
```
|
| 111 |
+
|
| 112 |
> 详细使用方法请参考 [配置指南](docs/configuration.md) 和 [API 服务指南](docs/api-guide.md)。
|
| 113 |
|
| 114 |
## 📚 文档导航
|