Redirect the recognized text by artyom in the way you want.

Sometimes you will need to know what artyom undestands and display it in the document, the original output of artyom is hidden unless you initialize artyom with the debug property set to true (that will make the output unretrievable too because it will be shown only in the console).

artyom.redirectRecognizedTextOutput((recognized,isFinal) => {
    if(isFinal){
        // Nothing
        $("#span-preview").text("");
    }else{
        $("#span-preview").text(recognized);
    }
});