Raspberry Pi Google Assistant:googlesamples-assistant-pushtotalk命令说未找到配置

时间:2018-12-02 19:59:10

标签: raspberry-pi google-assistant-sdk

我正在用Raspberry Pi 3做一个Google助手,我只是想像文档(https://developers.google.com/assistant/sdk/guides/service/python/extend/handle-device-commands)一样使LED开关,但是当我运行此命令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.

我已尝试进行故障排除,但似乎无济于事。我在这里完全迷路了。任何帮助表示赞赏!

谢谢!

1 个答案:

答案 0 :(得分:0)

因此,事实证明,我只需要在命令末尾添加设备型号ID和项目ID,即可注册。

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

我希望这对其他人有帮助!