网页录音1 2 var audioCtx = new AudioContext(); var source = audioCtx.createMediaStreamSource(stream); 或者参考第三方库Recorder, github: https://github.com/xiangyuecn/Recorder, recorderjs