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 传进来音色就必须跟着换、没配的回落全局。
This commit is contained in:
l
2026-10-16 16:21:39 +08:00
parent 182c0005a4
commit 08eecb9e0a
4 changed files with 47 additions and 7 deletions

View File

@@ -30,8 +30,8 @@ android {
* versionCode 每次发版 +1(Android 靠它判断"能不能覆盖安装",
* 改小了会装不上)。
*/
versionCode = 253
versionName = "2.0.53"
versionCode = 254
versionName = "2.0.54"
ndk {
// Chaquopy 只支持这两个;Termux bootstrap 也只准备了这两份