树莓派谷歌助手:谷歌样本助手pushtotalk命令说找不到配置



我正在用我的树莓派3制作一个谷歌助手,我只是试着像文档中那样打开和关闭LED(https://developers.google.com/assistant/sdk/guides/service/python/extend/handle-device-commands)但是当我运行这个命令googlesamples-assistant-pushtotalk来测试它时,我得到了一个错误:

(env) pi@raspberrypi:~ $ googlesamples-assistant-pushtotalk
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.

我试过排除故障,但似乎什么都不起作用。我在这里完全迷路了。感谢您的帮助!

谢谢!

所以我只需要将设备型号id和项目id添加到命令的末尾,这样它就可以注册了。

googlesamples-assistant-pushtotalk --device-model-id <device model id> --project-id <project id>

我希望这能帮助其他人!

最新更新