yihong0618 / xiaogpt

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

求助:S12小爱音箱,设置了"mute_xiaoai": true但是感觉延迟很高,每次都会先回答出几个小爱自己的输出字眼然后才会询问chatGPT #457

Open EasonFang opened 3 months ago

yihong0618 commented 3 months ago

这个做到完全 mute 很难。。。不建议。 S12 应该 mute 效果没那么好。

EasonFang commented 3 months ago

好的好的,谢大佬!

kidxiang commented 2 months ago

我也是S12,S12是不是只能用小米自己的tts?我换成edge就没有声音了(后台有文字输出)

yihong0618 commented 2 months ago

我也是S12,S12是不是只能用小米自己的tts?我换成edge就没有声音了(后台有文字输出)

你是docker 用的么? 用 openai 和 azure 试试

kidxiang commented 2 months ago

我也是S12,S12是不是只能用小米自己的tts?我换成edge就没有声音了(后台有文字输出)

你是docker 用的么? 用 openai 和 azure 试试

是用的docker,晚上回去试试openai 和 azure

kidxiang commented 2 months ago

试了azure,还是不放音(后台有文字输出),看来S12是不支持其他tts了

yihong0618 commented 2 months ago

s12 理论上是支持的。。。

  1. 用最新的 images 试试
  2. 用代码跑试试,不用 docker
  3. 确认下你 docker 跑是按照 readme 的,给加个 env
kidxiang commented 2 months ago

s12 理论上是支持的。。。

  1. 用最新的 images 试试
  2. 用代码跑试试,不用 docker
  3. 确认下你 docker 跑是按照 readme 的,给加个 env

已使用最新的image,还是不能播放azure的tts,麻烦大佬帮忙看看配置呢

config.json的配置如下

/docker/xiaogpt# vi config.json { "hardware": "S12", "account": "xxxxx@xxx.com", "password": "xxxxxxxx", "gemini_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "mi_did": "151104824", "use_command": false, "mute_xiaoai": true, "verbose": false, "bot": "doubao", "tts": "azure", "tts_options": { "speech_key": "xxxxxxxxxxxxxxxxxxxx", "speech_region": "eastasia" }, "prompt": "请一步一步的思考后再回答我的问题", "keyword": ["请"], "change_prompt_keyword": ["更改提示词"], "start_conversation": "开始持续对话", "end_conversation": "结束持续对话", "stream": true, "volc_access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "volc_secret_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }

以下是日志的截图,用的群晖的docker启动的 image

docker的环境变量截图 image

kidxiang commented 2 months ago

s12 理论上是支持的。。。

  1. 用最新的 images 试试
  2. 用代码跑试试,不用 docker
  3. 确认下你 docker 跑是按照 readme 的,给加个 env

已使用最新的image,还是不能播放azure的tts,麻烦大佬帮忙看看配置呢

config.json的配置如下

/docker/xiaogpt# vi config.json { "hardware": "S12", "account": "xxxxx@xxx.com", "password": "xxxxxxxx", "gemini_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "mi_did": "151104824", "use_command": false, "mute_xiaoai": true, "verbose": false, "bot": "doubao", "tts": "azure", "tts_options": { "speech_key": "xxxxxxxxxxxxxxxxxxxx", "speech_region": "eastasia" }, "prompt": "请一步一步的思考后再回答我的问题", "keyword": ["请"], "change_prompt_keyword": ["更改提示词"], "start_conversation": "开始持续对话", "end_conversation": "结束持续对话", "stream": true, "volc_access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "volc_secret_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }

以下是日志的截图,用的群晖的docker启动的 image

docker的环境变量截图 image

搞定了,加了一个环境变量XIAOGPT_HOSTNAME,就可以了 谢谢大佬的耐心回答,还是自己readme文件没看得仔细

yihong0618 commented 2 months ago

s12 理论上是支持的。。。

  1. 用最新的 images 试试

  2. 用代码跑试试,不用 docker

  3. 确认下你 docker 跑是按照 readme 的,给加个 env

已使用最新的image,还是不能播放azure的tts,麻烦大佬帮忙看看配置呢

config.json的配置如下

/docker/xiaogpt# vi config.json

{

"hardware": "S12",

"account": "xxxxx@xxx.com",

"password": "xxxxxxxx",

"gemini_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",

"mi_did": "151104824",

"use_command": false,

"mute_xiaoai": true,

"verbose": false,

"bot": "doubao",

"tts": "azure",

"tts_options": {

"speech_key": "xxxxxxxxxxxxxxxxxxxx",

"speech_region": "eastasia"

},

"prompt": "请一步一步的思考后再回答我的问题",

"keyword": ["请"],

"change_prompt_keyword": ["更改提示词"],

"start_conversation": "开始持续对话",

"end_conversation": "结束持续对话",

"stream": true,

"volc_access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",

"volc_secret_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

}

以下是日志的截图,用的群晖的docker启动的

image

docker的环境变量截图

image

你能试下 micli play url 能不能播放东西么