Speech recognition listen to long

雨燕双飞 提交于 2020-01-04 03:48:09

问题


I need your help I have no idea how to fix my issue. I have app writen in ionic and I use annyang to Speech Recognition to listen what user said and response for that. It's working pretty good on web - using ionic serve, but when I run it on android device voice recognition take a long of time from 30s to couple of minutes - I just say one word for example "shop".

It's any way to decrease this time? Or can i set any of timeout?

I'll appreciate any help. Thanks.

Edit: code look like

        //response is array of strings (three words)
        _.forEach(response, function (item) {
            annyang.addCommands(item,function(itme){
                 //check Something
            });            
        }

        annyang.start();

Edit2: here is this same, for resoult I have to wait 2min

var recognition = new SpeechRecognition();
recognition.onresult = function(event) {
  console.log(event)
}
recognition.start();

来源:https://stackoverflow.com/questions/39255731/speech-recognition-listen-to-long

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!