Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mic-selector

returns jQuery a <select> tag populated with <option> tags for all available microphone inputs

microphone, mic, select, selector, web, audio, api, audio, jquery

readme

mic-selector

returns a jQuery select element populated with option elements for all available microphone inputs. on change, the element triggers a 'bang' event with a MediaStreamAudioSourceNode for the chosen input.

install

npm i --save mic-selector

usage

var $ = require('jquery')
var audioCtx = new (window.AudioContext || window.webkitAudioContext)()
var $micSelector = require('mic-selector')(audioCtx)

$micSelector.on('bang', function (e, node) {
  node.connect(audioCtx.destination)
})

$('body').append($micSelector)

eyy