audio-hid-events

Listen to HID events from USB audio products.

Usage no npm install needed!

<script type="module">
  import audioHidEvents from 'https://cdn.skypack.dev/audio-hid-events';
</script>

README

Audio HID Events

Listen to HID events from USB audio products.

Installation

npm install --save audio-hid-events

Usage

const audioHidEvents = require('audio-hid-events')

audioHidEvents.on('volume-up', () => {
  console.log('Volume up')
})

audioHidEvents.on('volume-down', () => {
  console.log('Volume down')
})

audioHidEvents.on('mute', () => {
  console.log('Toggle mute')
})

Events

Name Button
volume-up Volume up
volume-down Volume down
mute Mute

Supported products

Currently the only supported product is "USB AUDIO CODEC" (29c6) by "BurrBrown from Texas Instruments" (08bb). Adding support for more products should be trivial.