问题
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