recorder icon indicating copy to clipboard operation
recorder copied to clipboard

getNextData() 获取的dataView怎么转Blob?

Open smallcoders opened this issue 4 years ago • 5 comments

smallcoders avatar May 27 '20 06:05 smallcoders

new Blob([ dataView ]) 这样就行了

2fps avatar May 27 '20 13:05 2fps

getNextData() 返回: Array, 数组中是DataView数据,我要把数组里面的每一项都new Blob()吗

------------------ 原始邮件 ------------------ 发件人: "涛走云散"<[email protected]>; 发送时间: 2020年5月27日(星期三) 晚上9:01 收件人: "2fps/recorder"<[email protected]>; 抄送: "小马哥"<[email protected]>;"Author"<[email protected]>; 主题: Re: [2fps/recorder] getNextData() 获取的dataView怎么转Blob? (#50)

new Blob([ dataView ]) 这样就行了

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

smallcoders avatar May 28 '20 01:05 smallcoders

请问后台该如何处理这个DataView数据并储存为pcm音频数据

this.ws = new WebSocket("ws://ip地址+端口"); setInterval(() => { var data = recorder.getNextData(); for(var i in data){ this.ws.send(data[i]); } }, 500)

zyh980721 avatar Sep 09 '20 05:09 zyh980721

new Blob([dataView])这样就行了

原来是个数组 每一个都取出来转

usernameisMan avatar Sep 15 '20 07:09 usernameisMan

怎么解决H5不能录制15khz-20khz频率的声音

zyh980721 avatar Sep 15 '20 07:09 zyh980721