So you know when you play audio (like opening a YouTube video) and click your system volume settings to see how loud it is? Like this?
I want to do the same with NodeJS, where I run a function and it continuously outputs the sound level, something like this:
let libraryThatGetsSound = require('libraryThatGetsSound');
while(true) {
console.log(libraryThatGetsSound.soundLevel());
}
This application will run on the desktop itself, not in a browser.
How would I do that?
question from:
https://stackoverflow.com/questions/65947292/checking-system-sound-level-through-node 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…