Resume the command recognition if it has been paused previously.

This method allows you to resume the command recognition if it was paused using the artyom.dontObey method.

Resume commands execution

// 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);

Resume commands execution with obeyKeyword

You can resume the command recognition using your voice and by setting up the obeyKeyword at the initialization of artyom. This will allow you to resume the commands recognition if you speak the providen keyword(s):

artyom.initialize({
    lang:"en-GB",
    continuous:true,
    debug:true,
    listen:true,
    // if artyom is not obeying (paused) and the users says the obeyKeyword
    // it will continue with the command recognition (obey again)
    // if you say "start again" and artyom is not obeying, it will obey again.
    obeyKeyword: "start again"
});