Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Audio API, get the output from the soundcard

Can it be done?

If so, any information on the subject is greatly appreciated. (If not with the Web Audio API, is there some other API that lets me achieve this?)

like image 583
August Bjornberg Avatar asked Jan 09 '14 09:01

August Bjornberg


2 Answers

Derek is correct. If You have a realtek card (I don't know about support from other manufacturers) You set it to stereo mix, and set the stereo mix to default microphone. You can then create a source node linked with your mic using navigator.getUserMedia.. Google and You Will find it.

I just made a fiddle for you: Audio from soundcard

EDIT: the link now goes to the right version of the jsfiddle (the other one had the bars wrong).

like image 94
MarijnS95 Avatar answered Oct 18 '22 14:10

MarijnS95


It's possible to capture global audio output with Web Audio API for audio cards that support Stereo Mix feature, otherwise you could use Virtual Audio Cable.

Here's a fiddle https://jsfiddle.net/bomzj/beap6n2g/

like image 35
Maksim Shamihulau Avatar answered Oct 18 '22 14:10

Maksim Shamihulau