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:
+1
-1
@@ -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 */ }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user