网页录音

0 minute read
1 var audioCtx = new AudioContext();
2 var source = audioCtx.createMediaStreamSource(stream);

或者参考第三方库Recorder, github: https://github.com/xiangyuecn/Recorderrecorderjs