yihong0618 / xiaogpt

Play ChatGPT and other LLM with Xiaomi AI Speaker
MIT License
6.03k stars 839 forks source link

今天突然不能播报了 #362

Closed VectorZhao closed 9 months ago

VectorZhao commented 10 months ago

gpt返回了内容,但是小爱同学没有朗读内容。。。。。。更新到新版本出现的

config配置文件

{
  "hardware": "LX06",
  "account": "1xxxxxxxxa",
  "password": "xxxxxxxxx",
  "openai_key": "sk-qVaxxxxxxxxxxxx",
  "cookie": "",
  "mi_did": "x",xxxxxxxx
  "use_command": false,
  "mute_xiaoai": true,
  "verbose": false,
  "bot": "chatgptapi",
  "enable_edge_tts": true,
  "edge_tts_voice": "zh-CN-XiaoxiaoNeural",
  "prompt": "你是家庭智能音箱语音助手,可以解答任何问题,每次询问你问题时,请用100字以内回答",
  "keyword": ["请问"],
  "change_prompt_keyword": ["更改提示词"],
  "start_conversation": "开始对话",
  "end_conversation": "结束对话",
  "stream": false,
  "proxy": "",
  "gpt_options": {
    "model": "gpt-4"
  },
  "api_base": "https://api.xxx.xxx/v1",
  "deployment_id": "",
  "localhost": true
}

docker logs

[10/31/23 10:30:38] INFO     Serving on 172.17.0.4:9527           xiaogpt.py:318
Running xiaogpt now, 用`请问`开头来提问
或用`开始对话`开始持续对话
--------------------
问题:你喜欢我吗?
以下是小爱的回答:  嗯嗯、喜欢
以下是 CHATGPTAPI 的回答: 作为一个人工智能助手,我没有情绪,因此不能感觉到喜欢或不喜欢。但我一直在这里为你
提供信息和帮助,我可以从回答问题、提醒你做事、调整设备设置等方面帮到你。我是一个
无偏的工具,也希望通过提供帮助,能为你的生活带来一些便利。

回答完毕
yihong0618 commented 10 months ago

@VectorZhao 重启小爱同学。。。

VectorZhao commented 10 months ago

@VectorZhao 重启小爱同学。。。

刚才尝试了: 拔插电源,小爱音箱pro联网后询问,灯闪烁,没有朗读gpt返回的内容 重启了xiaogpt的docker容器,再次询问,依然是灯闪烁,无声音

VectorZhao commented 10 months ago

"enable_edge_tts": false 不启用微软tts,小爱的声音可以朗读。

yihong0618 commented 10 months ago

"enable_edge_tts": false 不启用微软tts,小爱的声音可以朗读。

在手机里重新设置小爱的蓝牙