get and set the current audio device on windows.
$ npm install audio-devices --save
- Set the current audio device
- Get a list of all audio devices(WIP!)
Set the current device to "Speakers"
const audioDevices = require('audio-devices');
audioDevices.setDevice('Speakers')
.then(() => {
console.log('done!')
})
.catch((err) => {
console.log('error', error)
})
- Add CLI
- Find alternative to nircmd for getting audio devices
- Getting the list of audio devices opens a popup and isn't readable