1.0.2 • Published 7 years ago

windows-audio-devices v1.0.2

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

windows-audio-devices

On Windows 7 and superior, get a native alternative to navigator.mediaDevices.enumerateDevices() to get audio capture and render devices.

npm install windows-audio-devices
const { getAudioDevices } = require('windows-audio-devices')
const audioDevicesArray = getAudioDevices()

Returns an array of objects structured as below:

{
  "kind": "'audioinput' or 'audioutput'"
  "device": "Complete device name",
  "friendly": "Shortened friendly name for display",
  "default": "Boolean representing default system choice"
}

License

MIT, please see LICENSE for details. Copyright (c) Aircall.io