gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 10:38:01 24 4
gpt4 key购买 nike

我一直在使用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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com