我只是在当前日期尝试在raspberry pi w上安装google助手,只是按照Google的助手SDK程序从开始直到测试,但最后的命令即googlesamples-assistant-pushtotalk --project-id my-dev-project --device-model-id my-model
我得到输出:
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or directory: '/home/pi/.config/googlesamples-assistant/device_config.json'
INFO:root:Registering device
ERROR:root:Failed to register device: {
"error": {
"code": 400,
"message": "Could not create the device instance. Project_id from side channel and project_id from url do not match.",
"status": "INVALID_ARGUMENT"
}
}
那是什么问题?请帮忙!
根据错误消息,您在命令行中提供的--project-id
与您登录的项目的ID不同。
当您使用setup the project时,您需要创建一个设备模型,然后下载client_secrets文件。然后,您将使用google-oauthlib-tool
来交换用户凭据的客户端密钥。
用于创建设备模型的项目ID需要与您在参数中提供的项目ID相同。