0.1.5 • Published 6 years ago

sibilant-webaudio v0.1.5

Weekly downloads
12
License
MIT
Repository
-
Last release
6 years ago

sibilant

detect speaking events from web audio

installation

npm install sibilant-webaudio

usage

Sibilant emits three different kinds of events after it's been hooked up to a web audio stream:

  • speaking: emitted continuously while voiced speech is detected
  • stoppedSpeaking: emitted at the end of an utterance, with the start and end time of speech
  • volumeChanged: emitted any time the volume of the audio stream changes
const Sibilant = require('sibilant-webaudio')

var speakingEvents = new Sibilant(stream)
speakingEvents.bind('speaking', function () {
    console.log('speaking!')
})
speakingEvents.bind('stoppedSpeaking', function (data) {
    console.log('Spoke!', 'start:', data.start, 'end:', data.end)
})
speakingEvents.bind('volumeChanged', function (data) {
    console.log('volume changed!', 'value:', data)
})

license

MIT

0.1.5

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago