编程方式使用记录JS或HTML5的网页音频输出? [英] Programatically record audio output from web page using jS or html5?

查看:240
本文介绍了编程方式使用记录JS或HTML5的网页音频输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法以编程方式捕获使用HTML5,JS,还是其他什么东西,并创建MP3 / WAV文件出来的网页正在播放的音频?我知道网络音频API,但我只能够找到记录从麦克风输入音频,而不是网页的输出信息。

Is there any way to programatically capture the audio being played from a webpage using html5, jS, or something else and create a mp3/wav file out of it? I know of the web audio API, but I've only been able to find information on recording audio from microphone input, rather than output of a web page.

感谢

推荐答案

您可以使用网络音频API记录任何网络音频节点的输出,而不仅仅是麦克风输入。如果你想记录从音频网页使用网络音频API发出声音,那么你绝对可以使用网络音频API来记录它(退房Recorder.js)。

You can use the Web Audio API to record the output of any Web Audio node, not just microphone input. If the webpage you want to record audio from is using the Web Audio API to generate sound, then you can definitely use the Web Audio API to record it (check out Recorder.js).

如果声音是从HTML元素发挥,你可以把它变成一个网络音频节点,并记录下来。检查了这一点:的http://updates.html5rocks.com/2012/02/HTML5-audio-and-the-Web-Audio-API-are-BFFs

If the sound is being played from html elements, you can turn it into a Web Audio node and record it. Check this out: http://updates.html5rocks.com/2012/02/HTML5-audio-and-the-Web-Audio-API-are-BFFs

这篇关于编程方式使用记录JS或HTML5的网页音频输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆