去除音频超时保护
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m53s

This commit is contained in:
Song367 2025-08-12 16:19:52 +08:00
parent 9ef75a1745
commit 27234f1a5a

View File

@ -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}`);