在浏览器中语音聊天?

发布于 2024-11-28 14:31:48 字数 1437 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

铜锣湾横着走 2024-12-05 14:31:48

如果您希望您的解决方案是基于服务器端和客户端的纯 JavaScript,那么您可能需要等待 WebRTC设备 API媒体捕获 API 和然后为其实现node.js后端。

除此之外,我想说的是,客户端面向 Flash 的 API(用于访问摄像头或麦克风等设备)以及与 Node.js 后端的某种互操作性(以防您不想利用)的问题Flash Media ServerRed5

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.

沉溺在你眼里的海 2024-12-05 14:31:48

我正在研究和解决同样的问题。

这是我建议的堆栈:-

在客户端捕获语音
https://github.com/jiehanzheng/Recorderjs/blob/master/README。 md

对捕获的语音进行编码,以便可以通过 Node 共享
https://github.com/jpemartins/speex.js

与多个用户共享语音数据
node.js 和 socket.io

有人就此写了一篇论文。很好读,但示例中缺少一些代码
http://pure.ltu.se/portal/ files/36285511/LTU-EX-2012-36247736.pdf

相关问题。特别是看看 Sirjamm 的回答
如何调用 SPEEX 音频解码/编码HTML5 / JavaScript(无 Flash)

如果我能正常工作,将在此处发布 github 参考。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文