使用Web Audio API进行跨应用程序音频分析 [英] Cross application audio analysis with the Web Audio API

查看:112
本文介绍了使用Web Audio API进行跨应用程序音频分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用web audio api和three.js库编写音频可视化应用程序。我使用html5元素从AudioContext对象中使用createMediaElementSource()方法从本地mp3或流式mp3文件获取音频已经取得了很大的成功,但我希望我的用户能够可视化他们的音乐。 itunes或Spotify应用程序也是如此。我简单地谈到了'音频插孔api',但是大部分文档都是我的头脑,因为我没有使用任何语言编写的以'c'为前缀的程序的经验:P。所有我知道并且有时间学习(因为这是一个课程项目)更多的是ruby和javascript。任何和所有输入都非常感谢!

I am writing an audio visualizer application using the web audio api and the three.js library. I've had a lot of success using the html5 element to get audio from a local mp3 or a streaming mp3 file with the createMediaElementSource() method from the AudioContext object, but I was hoping my user would have the ability to visualize music from their itunes or Spotify apps as well. I've briefly touched on the 'audio jack api' but most of the documentation is over my head as I have no experience with programs written in any languages prefixed with a 'c' :P. All I know and have the time to learn at the moment (as this is a curricular project) is more ruby and javascript. Any and all input is much appreciated!

推荐答案

没有内置方法可以做到这一点。 (实际上,因为它引起了很多安全和隐私问题。)可以在客户端的机器上设置环回音频驱动程序,并将其用作Spotify或iTunes的音频输出设备,并捕获其输入网络音频;当然,这不是一个伟大的最终用户解决方案。

There's no "built-in" way to do this. (On purpose, actually, because it raises a lot of security and privacy concerns.) It's possible to set up a loopback audio driver on a client's machine, and use that as the audio output device for Spotify or iTunes, and capture its input in Web Audio; that's not a great end-user solution, though, of course.

这篇关于使用Web Audio API进行跨应用程序音频分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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