browser-beep

Beeping sound in browser using Web Audio API

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
browser-beep
1701.0.26 years ago7 years agoMinified + gzip package size for browser-beep in KB

Readme

browser-beep
Beeping sound in browser using Web Audio API.
npm install browser-beep
See the live demo.

Usage

The constructor accepts an options object with keys context (AudioContext instance), frequency (frequency in Hz) and interval (interval between multiple beeps).
var beep = require('browser-beep')({ frequency: 830 })

// Number of times to beep
beep(2)