0.0.5 • Published 3 years ago

voice-commander v0.0.5

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

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()
0.0.5

3 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago