Check if artyom is listening your commands.

This function allow you to know if artyom is recognizing commands in the moment of execution (independently of it's obeying them or not).

if(artyom.isRecognizing()){
    console.log("Artyom is listening to your commands");
}else{
    console.log("Artyom is not listening to you.");
}

Example

// initialize artyom
artyom.initialize({
    lang:"en-GB",
    debug:true,
    continuous:true,
    listen:true
});

setTimeout(function(){

    // Show the status of the recognition, most likely to be true
    console.log("Recognizing : " + artyom.isRecognizing().toString());

    setTimeout(function(){
        // Stop recognition
        artyom.fatality();

        setTimeout(function(){    
            // Most likely to be false
            console.log("Recognizing : " + artyom.isRecognizing().toString());
        },1000);
    },1000);
},1000);