audio-devices

0.0.7 • Public • Published

audio-devices

get and set the current audio device on windows.

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

Package Sidebar

Install

npm i audio-devices

Weekly Downloads

1

Version

0.0.7

License

ISC

Last publish

Collaborators

  • ashleymarkfletcher