Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 460 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 460 Bytes

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)