Android SpeechRecognizer何时启动语音识别器时出现ERROR_CLIENT? [英] Android SpeechRecognizer when do I get ERROR_CLIENT when starting the voice recognizer?

查看:83
本文介绍了Android SpeechRecognizer何时启动语音识别器时出现ERROR_CLIENT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定一些与文档相关的内容.

I am not sure about some documentation related stuff.

总结一下我所做的事情和我想要做的事情:我设法将语音识别功能引入了在平板电脑上运行Android 4.2的 Android 应用程序中,它可以正常工作.现在,我想在 Google Glass 上移植我的应用程序,但不幸的是,当我尝试启动语音识别器时出现以下错误:错误5-> ERROR_CLIENT (其他客户端错误).该消息指导我找到与SpeechRecognizer对象无关的其他错误,但是我的日志中没有任何错误,甚至没有警告.因此,我的问题将是:我什么时候才能收到ERROR_CLIENT?什么样的错误会阻止识别器启动?

To sum up what I did and what I want to to: I managed to introduce voice recognition feature into an Android application that is running on Android 4.2 on a tablet, and it works ok. Now I want to port my application on Google Glass but unfortunately I get the following error when I try to start the speech recognizer: error 5 -> ERROR_CLIENT(Other client side errors). The message guides me to find other errors that not related to SpeechRecognizer object, but I don't get any in my logs, not even warnings. So my question would be: When exactly do I get ERROR_CLIENT? and what should look the errors that block the recognizer to start?

谢谢!:)

推荐答案

因此,经过一番痛苦之后,我设法解决了有关玻璃应用的问题.

So after a bit of pain I manage to solve my problem regarding my glass application.

首先,我发现仅当我的眼镜连接到互联网时,SpeechRecognizer才起作用!即便如此,我仍然时常收到错误5的信息.那是因为我与互联网,有时我的酒杯刚从互联网断开,没有任何通知!我认为这是下一级别眼镜必须解决的问题.它只是在没有通知您的情况下无法与Internet断开连接.

First of all I found that SpeechRecognizer only works when my glasses are connected to the internet! Even so I still received from times to times ERROR 5. That was because I have a bad connectivity to the internet and from times to times my glass just disconnected from the internet without any notifications! I think this is an issue that must be solved for the next level of glasses. It just cannot disconnect from the internet without notifying you.

因此,在Google Glass上ERROR_CLIENT(5)的原因之一是:没有互联网连接

这篇关于Android SpeechRecognizer何时启动语音识别器时出现ERROR_CLIENT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆