package
Record and recognize, and stream speech transcripts through the WebSpeech API.
npm install speech-to-text-streamGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
3.9 kB
Includes dependencies.
Simple text-stream wrapper around the WebSpeech API for Google Chrome.
var recognizer = new SpeechToTextStream()
button.onclick = function () {
recognizer.start() // Can only be started by user interaction
}
recognizer.on('data', function (token) {
// token is one spoken word
})
recognizer.on('speechstart', function (token) {
// speech has been recognized
})
recognizer.on('speechend', function (token) {
// speech has stopped or paused
})