feat: 添加HTTP接口支持Postman测试
- 添加 tiny_http 依赖用于HTTP服务器 - 守护进程自动启动HTTP服务器(端口=TCP端口+1) - 添加 /synthesize 接口(POST) - 添加 /health 健康检查接口(GET) - 测试通过: curl 和 mimo-tts send 命令
This commit is contained in:
22
changelog.md
22
changelog.md
@@ -192,6 +192,28 @@
|
||||
- `WARN` - 包含"警告"、"注意"
|
||||
- `ERROR` - 包含"错误"、"失败"、"无法"
|
||||
|
||||
### 新增(第十三轮 - HTTP 接口)
|
||||
- ✅ 添加 HTTP 接口(端口 = TCP端口 + 1)
|
||||
- ✅ tiny_http 依赖
|
||||
- ✅ POST /synthesize 接口
|
||||
- ✅ GET /health 健康检查
|
||||
|
||||
### 修改(第十三轮)
|
||||
- Cargo.toml: 添加 tiny_http
|
||||
- daemon.rs: 添加 HTTP 服务器函数
|
||||
- start_daemon: 自动启动 HTTP 服务器
|
||||
|
||||
### HTTP 接口
|
||||
| 地址 | 方法 | 说明 |
|
||||
|------|------|------|
|
||||
| http://127.0.0.1:9877/synthesize | POST | 语音合成 |
|
||||
| http://127.0.0.1:9877/health | GET | 健康检查 |
|
||||
|
||||
### 测试通过
|
||||
- ✅ curl 测试 /synthesize
|
||||
- ✅ curl 测试 /health
|
||||
- ✅ mimo-tts send 命令
|
||||
|
||||
---
|
||||
|
||||
## [0.1.0] - 2026-04-24
|
||||
|
||||
Reference in New Issue
Block a user