recognize-speech

1.1.3 • Public • Published

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

Standard - JavaScript Style Guide

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
  //  }

Package Sidebar

Install

npm i recognize-speech

Weekly Downloads

3

Version

1.1.3

License

MIT

Last publish

Collaborators

  • leonardokl