JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_bug

This commit is contained in:
杨航
2025-12-22 15:27:31 +08:00
parent a9395c245a
commit 10925d26dc
+11 -4
View File
@@ -170,6 +170,7 @@
timer = setInterval(updateRemaining, 400);
// 立即执行一次
updateRemaining();
startAutomaticEndTimeTimer()
talkMicrophoneRef.value.start({
sampleRate: 16000,
frameSize: 1024,
@@ -188,13 +189,19 @@
lock: id
})
);
// 打开一个计时器,时间到了就中断
automaticEndTimeTimer = setTimeout(() => {
destroy();
}, automaticEndTime);
startAutomaticEndTimeTimer()
}, 300);
}
};
// 启动没人说话定时器
const startAutomaticEndTimeTimer = () => {
// 打开一个计时器,时间到了就中断
automaticEndTimeTimer = setTimeout(() => {
destroy();
}, automaticEndTime);
}
const onError = (error) => {
// websocket错误处理
console.log('websocket错误处理', error.code);