SpeechRecognizer keeps getting ERROR_NETWORK

2019-07-23 03:22发布

问题:

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)