From 1362773c133a4ba467cc0d58baa05a4a83bb9b13 Mon Sep 17 00:00:00 2001 From: WJG Date: Tue, 25 Jun 2024 09:12:46 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E5=B0=8F=E7=88=B1?= =?UTF-8?q?=E9=9F=B3=E7=AE=B1=E8=BD=AC=E4=B9=89=E8=AF=B7=E6=B1=82=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E7=9B=B8=E5=85=B3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/tts.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/tts.md b/docs/tts.md index 8e379e5..3ed1b8f 100644 --- a/docs/tts.md +++ b/docs/tts.md @@ -44,13 +44,15 @@ export default { 可参考上面的 [MiGPT-TTS](https://github.com/idootop/mi-gpt-tts) 项目代码自行搭建服务端,只需满足以下接口即可: -### GET `TTS_BASE_URL/tts.mp3` +### GET `/api/tts.mp3` 文字合成音频,请求示例:`/api/tts.mp3?speaker=BV700_streaming&text=很高兴认识你` 其中,请求参数 `speaker` 为指定音色名称或标识,可选。 -### GET `TTS_BASE_URL/speakers` +> 注意:小爱音箱在访问音频链接时,可能会将请求链接中的 `&text=` 转义成 `+text=`,你需要在 Server 端手动修复请求参数。相关 [issue](https://github.com/idootop/mi-gpt/issues/120) + +### GET `/api/speakers` 获取音色列表