android - Google Cloud Speech API 给出不可用的 : Channel in TRANSIENT_FAILURE state in Android

标签 android voice-recognition speech-to-text android-speech-api google-cloud-speech

我一直在使用Google Cloud Speech API一阵子。我特别关注Google Speech Demo由谷歌提供。它在 5.0 及更高版本的设备上工作效率非常高。

但是当我在低于 5.0 的 Android 版本中运行它时,它总是给我

UNAVAILABLE: Channel in TRANSIENT_FAILURE state

我搜索了一下,找到了一些 canonical error codes for Google APIs ,它指定,

UNAVAILABLE The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff.

See the guidelines above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.

HTTP Mapping: 503 Service Unavailable

那么这是否意味着低于 Android 5.0 的 Android 设备不支持云语音服务?有什么解决方法吗?

最佳答案

我查看了 Android 示例,但看不到他们设置的任何地方:

ProviderInstaller.installIfNeeded(mContext);

您可以 read about it here .

如果这解决了问题,您可能会有更多问题,如 I posted here几天前。

关于android - Google Cloud Speech API 给出不可用的 : Channel in TRANSIENT_FAILURE state in Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39717602/

相关文章:

android - 使用 zxing 时获取扫描结果?

android - Android Studio 项目中缺少 allheaders.h

java - onStartListening 什么时候调用?

android - 使用 VOICE_UPLINK 和 VOICE_DOWNLINK 进行通话录音

android - 让app:packageProductionDebug任务占用70%的构建时间是正常的吗?

android - 我的 Android 应用程序的 Alpha 版本在 Google Play 中不可用

android - 从 Android 可穿戴设备获取语音输入

android - 如何将音频文件作为输入而不是录制的语音传递给 Google 搜索语音?

c# - 使用自定义模型 Microsoft azure 的 Azure 语音到文本单词准确度(以 % 为单位)

java - Android 语音识别器自动停止 - 需要像 Google Bolo App 一样实现