wav
wavebell
npm i wavebell
wav

wavebell

🔔 Catch realtime audio wave from microphone with JavaScript!

by Skyler

0.1.6 (see all)License:MITTypeScript:Not Found
npm i wavebell
Readme

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.

Downloads/wk

29

GitHub Stars

39

LAST COMMIT

3yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

3

OPEN PRs

1
VersionTagPublished
0.1.6
latest
5yrs ago
No alternatives found
No tutorials found
Add a tutorial