Capture system audio output with Nodejs

不打扰是莪最后的温柔 提交于 2019-12-03 13:27:37

问题


Is there a way in javascript or is there a nodejs module, that I can use to capture the output of a system (win/osx). For example, if a user is playing something via iTunes/MPlayer (any music player), I can capture the audio stream that's going to the speakers (output) and send it over the web?


回答1:


This might go some way to doing what you want: https://www.npmjs.com/package/node-core-audio




回答2:


I'm about to start some dev work on a similar project but was having issues getting node-core-audio to install so I had to find a different module. https://www.npmjs.com/package/naudiodon looks to be a good replacement and it installs just fine. Will update with my findings after I've had some time to play around with it.



来源:https://stackoverflow.com/questions/25033583/capture-system-audio-output-with-nodejs

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