Web Audio API, get the output from the soundcard

六眼飞鱼酱① 提交于 2019-11-27 06:56:34

问题


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?)


回答1:


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).




回答2:


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/



来源:https://stackoverflow.com/questions/21015686/web-audio-api-get-the-output-from-the-soundcard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!