JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_修改录音组件样式bug

This commit is contained in:
田岩
2026-03-12 08:35:42 +08:00
parent 65704cb5bd
commit c32db48d10
5 changed files with 33 additions and 6 deletions
@@ -1,3 +0,0 @@
export function startAudioRecord(callback) {}
export function stopAudioRecord() {}
export function preRequestRecordPermission() {}
@@ -0,0 +1,15 @@
export function startAudioRecord(options: StartAudioRecordOptions): void {
setTimeout(() => {
const recordStartTime = new Date().getTime();
// 1. 生成录音唯一标识(UUID,方便多录音实例管理)
const recordId = `${new Date().getTime()}_${Math.floor(Math.random() * 10000)}`;
options.onStart?.({
recordId: recordId, // 唯一标识
sampleRate: 16000.0, // 采样率
startTime: recordStartTime, // 启动时间戳
});
}, 100)
}
export function stopAudioRecord() {}
export function preRequestRecordPermission() {}