Programmatically record audio output from a web page using jS or html5?

Is there a way to programmatically capture the sound played from a web page using html5, jS or something else and create an mp3 / wav file from it? I know the web audio API, but I managed to find information about recording sound from the microphone input, and not the output of the web page.

thanks

+5
source share
1 answer

You can use the web audio API to record the output of any web audio node, not just mic input. If the webpage from which you want to record audio uses the web audio API to generate sound, then you can definitely use the web audio API for recording (check Recorder.js).

If sound is 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

+4
source

Source: https://habr.com/ru/post/1204275/


All Articles