obey
如果之前命令是被被停止了,则恢复之
恢复命令执行
/ Add here a lot of commands i.e :
// ["hello","how are you","say hello"]
artyom.initialize({
lang:"en-GB",
continuous:true,
debug:true,
listen:true
});
// Dont obey any order that the user gives
artyom.dontObey();
// If you trigger any command with your voice, nothing will happen
// but in 5 seconds enable the function again with obey
setTimeout(() => {
// Enable command recognition again
artyom.obey();
// Try to say hello again and now the command will be recognized
}, 5000);通过 ObeyKeyword 恢复命令执行功能
Last updated
Was this helpful?