【发布时间】:2017-03-30 10:09:03
【问题描述】:
我在 Android 应用中使用 Google Speech API。自述文件指出:
In this sample, we load the credential from a JSON file stored in a raw resource folder of this client app. You should never do this in your app. Instead, store the file in your server and obtain an access token from there.
是否有关于如何正确获取生产应用程序的访问令牌的示例?
根据我收集到的信息,我似乎可以使用通过 Compute Engine 或 GAE 提供的Application Default Credentials,但我不知道如何使用访问令牌来实际响应我的应用。
【问题讨论】:
标签: android google-speech-api google-cloud-speech