browser-beep

1.0.2 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i browser-beep

Weekly Downloads

55

Version

1.0.2

License

MIT

Last publish

Collaborators

  • kapetan