voice-commander

0.0.5 • Public • Published

Voice-Commander

ECMA6

Install

  npm i voice-commander --save

Usage

import { VoiceCommander, colorNamesGrammars } from 'voice-commander'

const options = {
  grammarData: colorNamesGrammars,
  callback: (r) => {
    if (r == "test") {
      alert("Test what ;) ?")
    }
    console.log(r);
  }
}

const VoiceCommanderInstance = new VoiceCommander(options)

console.log(VoiceCommanderInstance)

// If you want make it global
window.vc = VoiceCommanderInstance;

// Activate listen operation
VoiceCommanderInstance.run()

Package Sidebar

Install

npm i voice-commander

Weekly Downloads

1

Version

0.0.5

License

GPL-3.0-or-later

Unpacked Size

12 kB

Total Files

9

Last publish

Collaborators

  • zlatnaspirala