Skip to content

ashleymarkfletcher/audio-devices

Repository files navigation

audio-devices

get and set the current audio device on windows.

NPM

Build status codecov

Installing

$ npm install audio-devices --save

Features

  • Set the current audio device
  • Get a list of all audio devices(WIP!)

Example Usage

Set the current device to "Speakers"

const audioDevices = require('audio-devices');

audioDevices.setDevice('Speakers')
.then(() => {
  console.log('done!')
})
.catch((err) => {
  console.log('error', error)
})

ToDo

  • Add CLI
  • Find alternative to nircmd for getting audio devices

Known issues

  • Getting the list of audio devices opens a popup and isn't readable

Releases

No releases published

Packages

No packages published