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()) {