serenadeai / speech-recorder

speech-recorder is a node.js module for streaming audio from a device's microphone and filtering for speech.
MIT License
86 stars 19 forks source link

create callbacks for chunks #3

Closed tmacwill closed 3 years ago

tmacwill commented 3 years ago

replace onSpeech with callbacks for onChunkStart and onChunkEnd, since those lifecycle events are more relevant than onSpeech.