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)

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i browser-beep

    Weekly Downloads

    21

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • kapetan