Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对于chatgpt多行回复,只能输出第一行的语音 #20

Closed
EthantLu opened this issue Jun 4, 2024 · 9 comments
Closed

对于chatgpt多行回复,只能输出第一行的语音 #20

EthantLu opened this issue Jun 4, 2024 · 9 comments

Comments

@EthantLu
Copy link

EthantLu commented Jun 4, 2024

image
提问: 可可战国四大名将是谁?
回答:王翦(秦国)- 他是秦始皇的重要将领,多次带领秦军取得重大战功。
然后直接回复了: 🔊 还有其他问题吗?

也就是说,chatgpt多行回复只能输出第一行语音,希望作者可以修一修这个小bug,辛苦啦

@idootop
Copy link
Owner

idootop commented Jun 4, 2024

你的小爱音箱是什么型号?有些型号需要配置 playingCommand

@shangjiyu
Copy link

借楼: 小爱触屏音箱pro 8, 配置 playingCommand: [4,1,1], palyState: undefined, 导致未读完整

@idootop
Copy link
Owner

idootop commented Jun 4, 2024

借楼: 小爱触屏音箱pro 8, 配置 playingCommand: [4,1,1], palyState: undefined, 导致未读完整

这个型号的 playing-state 没有读取权限,把 playingCommand 注释掉,如果获取到的 palyState 还是 undefined,说明此设备不支持外部直接读取播放状态,无解。

image

@idootop
Copy link
Owner

idootop commented Jun 4, 2024

后面我会添加一个开关,控制是否启用流式响应(确保小爱的回复是完整的句子),对于不支持获取播放状态的设备,流式响应和唤醒模式就都失效了,只能一句一句的唤醒小爱进行对话。

@shangjiyu
Copy link

shangjiyu commented Jun 4, 2024 via email

@idootop
Copy link
Owner

idootop commented Jun 4, 2024

没理解你说的 手动写tts状态 是什么意思

@idootop
Copy link
Owner

idootop commented Jun 5, 2024

v3.0.0 版本已发布,添加了流式响应开关。对于获取播放状态为空的小爱音箱设备,请在 .migpt.js 配置文件中关闭 streamResponse 选项,即可保证小爱的回复是完整的句子。

export default {
  speaker: {
    // 是否启用流式响应,部分小爱音箱型号不支持查询播放状态,此时需要关闭流式响应
    streamResponse: false,
    // ...
  },
};

@BiuBiu2323
Copy link

感谢

@MsterMMM
Copy link

借楼: 小爱触屏音箱pro 8, 配置 playingCommand: [4,1,1], palyState: undefined, 导致未读完整

请问下兄弟最后是怎么搞定的?我的同型号音箱总是无法播放

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants