remoteProcessorService
创建一个自定义命令处理器。
启动远程模式
window.onload = function(){
artyom.initialize({
lang:"en-GB",
debug:true,
continuous:true,
listen:true,
// Important to use the custom processor
mode:"remote"
}).then(function(){
console.log("Artyom has been correctly initialized");
console.log("The following array shouldn't be empty" , artyom.getVoices());
}).catch(function(){
console.error("An error occurred during the initialization");
});
};自定义服务处理器
自定义本地处理器
Last updated
Was this helpful?