Voice chat in the browser? [closed]

假装没事ソ 提交于 2019-12-05 17:30:50

问题


We are looking to implement a group -voice- chat in the browser using node.js on the server. Is this possible?


回答1:


If you want your solution to be purely JavaScript based on both, server and client side, then you would probably have to wait for the WebRTC, Device API or media capture API and then implement node.js backend for it.

Other than that it is, I would say, a question of Flash oriented APIs on the client side (for accessing devices such as cameras or microphones) and some kind of interoperability with node.js backend in case you don't want to take advantage of Flash Media Server or Red5.




回答2:


I'm researching and working on the same problem.

This is my proposed stack:-

capturing voice on the client https://github.com/jiehanzheng/Recorderjs/blob/master/README.md

encoding the captured speech so that it can be shared via Node https://github.com/jpemartins/speex.js

sharing voice data with multiple users node.js and socket.io

Somebody wrote a THESIS on this. good read but some missing code in the samples http://pure.ltu.se/portal/files/36285511/LTU-EX-2012-36247736.pdf

relevant question on so. in particular look at answer by sirjamm How to Call SPEEX Audio Decode/Encode in HTML5 / JavaScript (Without Flash)

If I get it working, will post the github ref here.

hth



来源:https://stackoverflow.com/questions/6992507/voice-chat-in-the-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!