Restart an instance of Artyom using the last used initialization object.

The restart method restarts the default webkit speech recognition object used by Artyom using the last providen initialization object.

Example

let artyom = new Artyom();

artyom.initialize({
    lang: "es-ES",
    debug: true,
    continuous: true,
    listen: true
}).then(() => {
    // Say Good Morning in Spanish
    artyom.say("Buenos días !"); 

    // Restart Artyom with the initial configuration after 5 seconds
    setTimeout(() => {


        artyom.restart().then(() => {
            // The default configuration is kept
            // that means spanish mode
            artyom.say("Buenas tardes !");
        });
    }, 5000);
});