docs: 添加切换音色使用教程

This commit is contained in:
WJG 2024-06-17 21:40:06 +08:00
parent 5b9b16aad6
commit 2b01bbc9e3
No known key found for this signature in database
GPG Key ID: 258474EF8590014A
3 changed files with 10 additions and 4 deletions

View File

@ -218,7 +218,7 @@ export default {
对于国内环境无法访问 OpenAI 服务的情况,有以下几种处理方法:
1. 环境变量里填上你的代理地址,比如:`HTTP_PROXY=http://127.0.0.1:7890`
1. 环境变量里填上你的代理地址,比如:`HTTP_PROXY=http://127.0.0.1:7890`(或 `SOCKS_PROXY`
2. 使用第三方部署的 OpenAI API 反向代理服务,然后更新 `OPENAI_BASE_URL`
3. 使用国内的 LLM 服务提供商,比如 [通义千问](https://help.aliyun.com/zh/dashscope/developer-reference/compatibility-of-openai-with-dashscope/?spm=a2c4g.11186623.0.i1)、[零一万物](https://platform.01.ai/docs#making-an-api-request)、[Moonshot](https://platform.moonshot.cn/docs/api/chat)、[DeepSeek](https://platform.deepseek.com/api-docs/)等

View File

@ -15,7 +15,7 @@
- ✅ 优化网络请求错误重试策略(消息/播放状态轮询)
- ✅ 优化 db 路径查找方式与初始化脚本
- ✅ 移除 TTS 不发音字符emoji
- 优化切换音色指令(自定义)
- 优化切换音色默认语音指令
## 📚 文档
@ -33,13 +33,13 @@
- ✅ 添加 OpenAI 账号充值前可能无法使用 gpt-4 系列模型的相关说明
- ✅ 添加无需和小爱音箱在同一局域网下运行的说明
- ✅ 添加自定义 TTS 和音色的配置和使用教程
- 添加切换音色使用教程
- 添加切换音色使用教程
- 添加更详细的使用和配置视频教程
- 添加 302.AI Sponsor 链接
## ❤️ 感谢
- @tluo-github 添加对 SOCKS 代理的支持 https://github.com/idootop/mi-gpt/pull/100
- @tluo-github 添加对 SOCKS 代理的支持 https://github.com/idootop/mi-gpt/pull/100
- @shinedlc 实现了一个小爱音箱接入 [OpenGlass](https://github.com/BasedHardware/OpenGlass) 摄像头硬件 + 本机搭建 [Ollama](https://github.com/ollama/ollama) 模型的 [Fork](https://github.com/shinedlc/mi-gpt)
- @LycsHub 推荐了 [simple-one-api](https://github.com/fruitbars/simple-one-api) 将其他模型的接口统一成 OpenAI 的格式,支持 Coze
- @lmk123 推荐了国内 docker 镜像设置与大模型服务申请配置教程

View File

@ -19,11 +19,17 @@ export default {
speaker: {
// TTS 引擎
tts: 'custom',
// 切换 TTS 引擎发言人音色关键词
switchSpeakerKeywords: ["把声音换成"], // 以此关键词开头即可切换音色,比如:把声音换成东北老铁
// ...
},
};
```
配置成功后,即可通过 `小爱同学,把声音换成 xxx` 语音指令切换 TTS 音色。
[MiGPT-TTS](https://github.com/idootop/mi-gpt-tts) 支持的完整 TTS 音色列表与名称请查看此处:[volcano.ts](https://github.com/idootop/mi-gpt-tts/blob/main/src/tts/volcano.ts)
## TTS_BASE_URL
其中 `TTS_BASE_URL` 是你的外部 TTS 服务引擎地址。这里提供一个 Node.js 端的示例:[MiGPT-TTS](https://github.com/idootop/mi-gpt-tts):目前只接入了 [火山引擎](https://www.volcengine.com/docs/6561/79817) 的语音合成服务,实名认证后可以免费使用 21 款常用音色。