YafengLiang
2022-06-24 16:43
采纳率: 0%
浏览 10

The Application Default Credentials are not available

使用Google的speech-to-text时,在win系统中设置了GOOGLE_APPLICATION_CREDENTIALS环境变量,程序可以正常运行,在测试linux时,在/etc/profile文件中同样设置了GOOGLE_APPLICATION_CREDENTIALS的环境变量,
问题相关代码,请勿粘贴截图
报错如下
ERROR InfiniteStreamRecognize - 
java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
官网给出的提示信息

img

google的speeck-to-text在linux运行时,需要特殊设置么?有没有使用过的同学解答下

1条回答 默认 最新

相关推荐 更多相似问题