Ninety-nine Pitchers of Malt
    Have ideas to improve npm?Join in the discussion! »

    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

    Install

    npm i audio-devices

    DownloadsWeekly Downloads

    3

    Version

    0.0.7

    License

    ISC

    Last publish

    Collaborators

    • avatar