import{VoiceCommander,colorNamesGrammars}from'voice-commander'constoptions={grammarData: colorNamesGrammars,callback: (r)=>{if(r=="test"){alert("Test what ;) ?")}console.log(r);}}constVoiceCommanderInstance=newVoiceCommander(options)console.log(VoiceCommanderInstance)// If you want make it globalwindow.vc=VoiceCommanderInstance;// Activate listen operationVoiceCommanderInstance.run()