简体   繁体   English

如何从直播中保存和存储音频?

[英]How to save and store audio from a live stream?

On my website I have people use their phones as microphones, and ask a lecturer questions, which are then relayed to the surrounding audio system that is in the lecture hall. 在我的网站上,有人将他们的电话用作麦克风,并向讲师提问,然后将其转发给演讲厅中的周围音频系统。 (Users connect via WebRTC) (用户通过WebRTC连接)

However, I was wondering if there was a way to basically intercept and capture the audio that comes through the microphones and store it, so that students can access previous questions. 但是,我想知道是否有一种方法可以基本上截取并捕获通过麦克风传来的音频并将其存储起来,以便学生可以访问以前的问题。

What would be the best ways to approach this? 解决此问题的最佳方法是什么? I looked at RecordRTC, but that only creates a new audio stream to play and records that, as opposed to allowing microphone access and recording automatically once the stream starts. 我看了RecordRTC,但是它只能创建一个新的音频流来播放和录制,而不是允许在流开始后自动访问和录制麦克风。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM