@@ -16,6 +16,7 @@ Play ChatGPT and other LLM with Xiaomi AI Speaker
16
16
- New Bing
17
17
- [ ChatGLM] ( http://open.bigmodel.cn/ )
18
18
- [ Gemini] ( https://makersuite.google.com/app/apikey )
19
+ - [ Doubao] ( https://console.volcengine.com/iam/keymanage/ )
19
20
- [ 通义千问] ( https://help.aliyun.com/zh/dashscope/developer-reference/api-details )
20
21
21
22
## 获取小米音响DID
@@ -78,6 +79,8 @@ xiaogpt --hardware LX06 --mute_xiaoai --use_gemini --gemini_key ${gemini_key}
78
79
python3 xiaogpt.py --hardware LX06 --mute_xiaoai --use_gemini --gemini_key ${gemini_key} --gemini_api_domain ${gemini_api_domain}
79
80
# 如果你想使用阿里的通义千问
80
81
xiaogpt --hardware LX06 --mute_xiaoai --use_qwen --qen_key ${qwen_key}
82
+ # 如果你想使用豆包
83
+ xiaogpt --hardware LX06 --mute_xiaoai --use_doubao --stream --volc_access_key xxxx --volc_secret_key xxx
81
84
# 如果你想用 edge-tts
82
85
xiaogpt --hardware LX06 --cookie ${cookie} --use_chatgpt_api --tts edge
83
86
# 如果你想使用 LangChain + SerpApi 实现上网检索或其他本地服务(目前仅支持 stream 模式)
@@ -107,6 +110,8 @@ python3 xiaogpt.py --hardware LX06 --mute_xiaoai --use_gemini --gemini_key ${ge
107
110
python3 xiaogpt.py --hardware LX06 --mute_xiaoai --use_gemini --gemini_key ${gemini_key} --gemini_api_domain ${gemini_api_domain}
108
111
# 如果你想使用阿里的通义千问
109
112
python3 xiaogpt.py --hardware LX06 --mute_xiaoai --use_qwen --qen_key ${qwen_key}
113
+ # 如果你想使用豆包
114
+ python3 xiaogpt.py --hardware LX06 --mute_xiaoai --use_doubao --stream --volc_access_key xxxx --volc_secret_key xxx
110
115
# 如果你想使用 LangChain+SerpApi 实现上网检索或其他本地服务(目前仅支持 stream 模式)
111
116
export OPENAI_API_KEY=${your_api_key}
112
117
export SERPAPI_API_KEY=${your_serpapi_key}
@@ -258,7 +263,7 @@ docker build --build-arg PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
258
263
259
264
### 第三方 TTS
260
265
261
- 我们目前支持是三种第三方 TTS:edge/openai/azure
266
+ 我们目前支持是三种第三方 TTS:edge/openai/azure/volc/baidu/google
262
267
263
268
[ edge-tts] ( https://github.com/rany2/edge-tts ) 提供了类似微软tts的能力
264
269
[ azure-tts] ( https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/9-more-realistic-ai-voices-for-conversations-now-generally/ba-p/4099471 ) 提供了微软 azure tts 的能力
@@ -271,17 +276,16 @@ docker build --build-arg PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
271
276
``` json
272
277
{
273
278
"tts" : " edge" ,
274
- "tts_voice" : " zh-CN-XiaoxiaoNeural"
275
279
}
276
280
```
277
281
278
- 查看更多语言支持, 从中选择一个
282
+ For edge 查看更多语言支持, 从中选择一个
279
283
280
284
``` shell
281
285
edge-tts --list-voices
282
286
```
283
287
284
- #### 在容器中使用 edge-tts/azure-tts/openai-tts
288
+ #### 在容器中使用 edge-tts/azure-tts/openai-tts/volc/google/baidu
285
289
286
290
由于 Edge TTS 启动了一个本地的 HTTP 服务,所以需要将容器的端口映射到宿主机上,并且指定本地机器的 hostname:
287
291
0 commit comments