l
08eecb9e0a
fix(speech): 智能体的音色不生效(用户报的)—— 界面朗读时没传 agentId(v2.0.54)
内核一直是对的:speech.voice_for() 有'智能体 > 全局'的覆盖,
/api/tts 和 /api/tts/stream 都收 agentId。
漏的是界面:client.speak(text) 只传正文,内核拿不到人就永远用全局音色 ——
用户在智能体编辑页选的音色配了等于没配。
· SpeechController 加 agentId: () -> String(lambda,切换智能体要跟着变)
· KernelClient.speak / streamTts 加 agentId 参数
· ChatScreen 的 remember 里传 vm.state.settings.activeAgentId
· 流式那条(自动朗读/长句)漏的是同一处,一起补
探针新增 16 节 4 项:界面侧没法测(Kotlin),所以钉**契约** ——
只要 agentId 传进来音色就必须跟着换、没配的回落全局。
2026-10-16 16:21:39 +08:00
..
2026-10-16 16:21:39 +08:00
2026-10-16 16:11:36 +08:00
2026-10-16 09:29:40 +08:00
2026-10-14 12:48:47 +08:00
2026-10-16 09:29:40 +08:00
2026-10-12 15:56:55 +08:00
2026-10-09 14:09:36 +08:00
2026-10-16 09:29:40 +08:00