mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-12 17:08:11 +00:00
最长录音3分钟
This commit is contained in:
parent
38b6a74e3d
commit
2dc5790a46
@ -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()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user