SpeechRecognizer keeps getting ERROR_NETWORK

孤者浪人 提交于 2019-12-11 09:43:53

问题


I'm using SpeechRecognizer to convert voice to text, but I encounter a problem that SpeechRecognizer keeps getting Error_Network (like 80 percent possiblilty). Does anyone encounter this kind of problem.


回答1:


Have A look on this and this.

And Android Already Define this SpeechRecognizer. You Got this error because You are use some other network. Try to use google Default netowrk using setting.

May it helps...




回答2:


Are you using the internet while using the speech recognizer? If so , stop all other app (including making phonecalls) using the internet. If for some reason you cannot do that try working in offline mode, this means that the speech to text will be done locally on the device, thus not needing a network.

Use the following link to set it up:

Offline Speech Recognition In Android (JellyBean)



来源:https://stackoverflow.com/questions/26227866/speechrecognizer-keeps-getting-error-network

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