Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smallcoders opened this issue May 27, 2020 · 5 comments
Open

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

smallcoders opened this issue May 27, 2020 · 5 comments

Comments

@smallcoders
Copy link

No description provided.

@2fps
Copy link
Owner

2fps commented May 27, 2020

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

@smallcoders
Copy link
Author

smallcoders commented May 28, 2020 via email

@zyh980721
Copy link

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

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

@usernameisMan
Copy link

usernameisMan commented Sep 15, 2020

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

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

@zyh980721
Copy link

zyh980721 commented Sep 15, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants