![](/img/trans.png)
[英]AIY Voice Kit with Voice HAT on Raspberry Pi 3 suddenly requires Google Assistant on phone. Why?
[英]AIY authorization Error running voice/assistant_grpc_demo.py
已设置 RPi Zero Wireless、AIY 套件和项目,并已设置 Voice Kit Google Project 并启用 Google 助手,并设置用户凭据(OAuth)
运行 voice/assistant_grpc_demo.py 演示会显示 https: 链接打开 google 登录屏幕。 单击正确的用户帐户,将导致授权错误页面:错误 403:access_denied。
“请求详细信息”中的客户端 ID 是正确的,因此演示 python 代码似乎正确地找到了凭据 json 文件。
所以现在我被困在试图弄清楚为什么我会收到“拒绝访问”错误?
好的,所以 AIY 设置说明没有提到将测试用户添加到 OAuth 同意屏幕。
因此,只需将自己添加为测试用户,HTTPS 链接现在可以允许访问权限。
To add a Test User, go to the google cloud console ( https://console.cloud.google.com/ ) select your Voice Kit project, from the menu select APIS & Services, OAuth consent screen, Test users
从那里您使用+ ADD USERS
按钮添加测试用户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.