From bafc4abbc8fef128e41165d1c0f414c0a64c2dbb Mon Sep 17 00:00:00 2001 From: liucheng Date: Sat, 25 Jul 2026 14:26:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(voice):=20=E4=BF=AE=E5=A4=8D=20play=20?= =?UTF-8?q?=E8=B5=8B=E5=80=BC=E7=94=A8=E4=BA=86=E6=9C=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=9A=84=20url=20=E5=8F=98=E9=87=8F,=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E6=97=A0=E5=A3=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上轮本地缓存改造时 play 内变量由 url 改名为 src,但 ctx.src = url 漏改,ctx.src 被设为 undefined,所有语音静默不播。改为 ctx.src = src。 Co-Authored-By: Claude --- utils/voice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/voice.js b/utils/voice.js index 04dad07..eca3ecd 100644 --- a/utils/voice.js +++ b/utils/voice.js @@ -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 */ } }