fix(voice): 修复 play 赋值用了未定义的 url 变量,导致语音无声

上轮本地缓存改造时 play 内变量由 url 改名为 src,但 ctx.src = url
漏改,ctx.src 被设为 undefined,所有语音静默不播。改为 ctx.src = src。

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liucheng
2026-07-25 14:26:01 +08:00
parent 83077648fe
commit bafc4abbc8
+1 -1
View File
@@ -209,7 +209,7 @@ const play = async (promptKey) => {
const ctx = _getCtx()
try {
ctx.stop()
ctx.src = url
ctx.src = src
ctx.play()
} catch (e) { /* ignore playback errors */ }
}