0.1.6 • Published 6 years ago

wavebell v0.1.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

wavebell

Build Status Coverage Status npm

Catch realtime audio wave from microphone with JavaScript!

Screenshot

wavebell

Installation

# Install with npm
npm install --save wavebell
# Install with yarn
yarn add wavebell

Example

var bell = new WaveBell();

bell.on('wave', function (e) {
  // draw oscilloscope
  drawColumn(e.value);
});

bell.on('stop', function () {
  var blob = bell.result;
  // play recorded audio
  playback(URL.createObjectURL(blob));
});

// 25 frames per second
bell.start(1000 / 25);

Notice

In Chrome 47 or above, getUserMedia requires HTTPS to work. So it'd be better to setup SSL for your server.

Thanks

License

The MIT License.

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago