From 2dc5790a46cd0d89641910e1feeef0c8233ac1e1 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 29 May 2022 11:36:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E9=95=BF=E5=BD=95=E9=9F=B33=E5=88=86?= =?UTF-8?q?=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/pages/manage/components/ChatInput/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/pages/manage/components/ChatInput/index.vue b/resources/assets/js/pages/manage/components/ChatInput/index.vue index 5371147ac..f138c4e2a 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -527,11 +527,15 @@ export default { } this.recordRec = window.Recorder({ type: "mp3", - bitRate: 16, + bitRate: 32, sampleRate: 16000, onProcess: (buffers, powerLevel, duration, sampleRate, newBufferIdx, asyncEnd) => { this.recordWave.input(buffers[buffers.length - 1], powerLevel, sampleRate); this.recordDuration = duration; + if (duration >= 3 * 60 * 1000) { + // 最长录3分钟 + this.stopRecord(false); + } } }) if (window.Recorder.Support()) {