首页 > 解决方案 > 使用我的树莓派连接到谷歌助手时出错

问题描述

我在这里关注本教程:

https://www.hackster.io/Salmanfarisvp/googlepi-google-assistant-on-raspberry-pi-9f3677

在我的 Raspberry Pi 3 上使用 Google 助理。

我进入第 4 步(使用更新的 SDK),但得到以下输出:

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:Option --device-model-id required when registering a device instance

有人提到了相同的错误,但那里提供的解决方案对我不起作用(我已经将库更新到最新版本)

任何帮助将不胜感激。

谢谢 !

标签: raspberry-pi3google-assistant-sdk

解决方案


请按照文档中的此步骤注册设备型号。

然后,您应该--device-model-id在运行示例时包含该参数。

googlesamples-assistant-pushtotalk --project-id my-dev-project --device-model-id my-model


推荐阅读