detectErrors

通过artyom探查客户端中发现的错误。

该方法允许开发者探查是什么问题阻止了artyom的启动。

var errorObject = artyom.detectErrors();

console.log(normalError);

// Outputs for example
//{
//    code: "artyom_error_localfile",
//    message: "Fatal Error Detected : It seems you're running the artyom demo from a local file ! The SpeechRecognitionAPI Needs to be hosted someway (server as http or https). Artyom will NOT work here, Sorry."
//}

Last updated

Was this helpful?