在 Raspberry pi 零 W 上安装 Google 助手

Installing Google Assistant on Raspberry pi Zero W

我只是在当前日期尝试在 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"
  }
}

这是什么问题?请帮忙!

Error Screenshot here

根据错误消息,您在命令行中提供的 --project-id 似乎与您登录时使用的项目 ID 不同。

当您setup the project时,您需要创建一个设备模型,然后下载一个client_secrets文件。然后,您将使用 google-oauthlib-tool 将客户端密码交换为用户凭据。

您用于创建设备模型的项目 ID 需要与您在参数中提供的项目 ID 相同。