mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
perf: 优化录制语音消息
This commit is contained in:
parent
0ec255ed60
commit
a2ee1135dd
@ -895,7 +895,10 @@ export default {
|
||||
type: "mp3",
|
||||
bitRate: 64,
|
||||
sampleRate: 32000,
|
||||
audioTrackSet: null,
|
||||
audioTrackSet: {
|
||||
noiseSuppression: true,
|
||||
echoCancellation: true,
|
||||
},
|
||||
disableEnvInFix: false,
|
||||
onProcess: (buffers, powerLevel, duration, sampleRate, newBufferIdx, asyncEnd) => {
|
||||
this.recordWave?.input(buffers[buffers.length - 1], powerLevel, sampleRate);
|
||||
@ -909,6 +912,9 @@ export default {
|
||||
if (window.Recorder.Support()) {
|
||||
this.recordReady = true;
|
||||
}
|
||||
if (window.systemInfo.debug !== "yes") {
|
||||
window.Recorder.CLog = function () { }
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
0
resources/assets/statics/public/js/recorder/frequency.histogram.view.js
vendored
Normal file → Executable file
0
resources/assets/statics/public/js/recorder/frequency.histogram.view.js
vendored
Normal file → Executable file
0
resources/assets/statics/public/js/recorder/lib.fft.js
vendored
Normal file → Executable file
0
resources/assets/statics/public/js/recorder/lib.fft.js
vendored
Normal file → Executable file
2
resources/assets/statics/public/js/recorder/recorder.mp3.min.js
vendored
Normal file → Executable file
2
resources/assets/statics/public/js/recorder/recorder.mp3.min.js
vendored
Normal file → Executable file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user