使用Raspbian(Raspberry pi)的Google Speech Api凭证错误

时间:2017-04-09 01:39:42

标签: python raspberry-pi debian raspbian google-speech-api

我想对文本程序发表演讲,所以我使用了Google Speech Api。 当我在我的电脑上启动代码时,它可以工作,但在树莓派上它没有。可能是关于Credential,但我尝试了很多东西。例如: 我使用以下命令添加GOOGLE_APPLICATION_CREDENTIALS:

sudo nano ~/.bashrc

但仍然会产生错误enter image description here

我不知道该怎么做。

enter image description here

1 个答案:

答案 0 :(得分:0)

您需要重新启动终端才能使.bashrc中的命令生效。如果您不想重新启动终端,请键入

export GOOGLE_APPLICATION_CREDENTIALS="<creds>"