From ef45abd19e254cbbcbb644e431403a4cab66bcd5 Mon Sep 17 00:00:00 2001 From: songjvcheng Date: Tue, 12 Aug 2025 16:21:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=9F=B3=E9=A2=91=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/minimaxi_stream.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/minimaxi_stream.js b/src/minimaxi_stream.js index 26f1c46..b59efa6 100644 --- a/src/minimaxi_stream.js +++ b/src/minimaxi_stream.js @@ -123,13 +123,13 @@ function playAudioData(audioData) { }; // 超时保护 - setTimeout(() => { - if (isPlaying) { - console.log('音频播放超时,强制结束'); - isPlaying = false; - resolve(); - } - }, (audioData.duration + 0.5) * 1000); + // setTimeout(() => { + // if (isPlaying) { + // console.log('音频播放超时,强制结束'); + // isPlaying = false; + // resolve(); + // } + // }, (audioData.duration + 0.5) * 1000); source.start(0); console.log(`开始播放音频片段,时长: ${audioData.duration}秒`);