本文介绍了使用Javascript/Web Audio API访问/处理系统音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Web Audio API访问系统音频,以便对其进行可视化处理或对其应用均衡器?似乎可以将系统音频连接到Web Audio API可以访问的输入设备(即);但是理想情况下,我希望能够在不进行任何本地配置更改的情况下处理所有声音输出.

Is it possible to access system audio using the Web Audio API, in order to visualize or apply an equalizer to it? It looks like it's possible to hook up system audio to an input device that Web Audio API can access (i.e. Web Audio API, get the output from the soundcard); however ideally I would like to be able to process all sound output without making any local configuration changes.

推荐答案

否,这是不可能的.您能获得的最接近的是在用户系统上安装回送音频设备,例如OSX上的Soundflower,并将其用作默认音频输出设备.没有本地配置更改是不可能的.

No, this isn't possible. The closest you could get is installing a loopback audio device on the user's systems, like Soundflower on OSX, and use that as the default audio output device. It's not possible without local config changes.

这篇关于使用Javascript/Web Audio API访问/处理系统音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 20:54