recognize-speech
v1.1.3
Published
Minimal library that record the audio from your input device and turn it to text, using the browser SpeechRecognition, receiveiving it as a Promise
Downloads
6
Maintainers
Readme
RECOGNIZE SPEECH
Minimal library that record the audio from your input device and turn it to text, using the browser SpeechRecognition, receiveiving it as a Promise
Instaling
npm install -S recognize-speech
Usage
// const recognizeSpeech = require('recognize-speech')
import recognizeSpeech from 'recognize-speech'
recognizeSpeech()
.then(console.log)
// {
// transcript: 'Your speech!'
// confidence: 1
// }
Options
import recognizeSpeech from 'recognize-speech'
recognizeSpeech({ lang: 'en-US', interimResults: false, maxAlternatives: 1})
.then(console.log)
// {
// transcript: 'Your speech!'
// confidence: 1
// }