|
@@ -176,7 +176,7 @@ const playNextAudio = async () => {
|
|
|
// 如果播放队列为空,停止播放
|
|
|
if (audioQueue.length === 0) {
|
|
|
isPlaying = false; // 播放完所有音频
|
|
|
- audioQueue = []; // 确保列表为空
|
|
|
+ // audioQueue = []; // 确保列表为空
|
|
|
console.log("所有音频播放完毕.");
|
|
|
return;
|
|
|
}
|
|
@@ -426,6 +426,8 @@ const chatGpt = async (userMessage) => {
|
|
|
}
|
|
|
);
|
|
|
setTimeout(() => {
|
|
|
+ audioQueue=[]
|
|
|
+ playingQueue=[]
|
|
|
handleTaskStatus()
|
|
|
},3000)
|
|
|
//queue2.add(async () => await updateChatList("", false));
|