JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user