【问题标题】:Raspberry Pi Google Assistant: googlesamples-assistant-pushtotalk command saying no config foundRaspberry Pi Google 助理:googlesamples-assistant-pushtotalk 命令说找不到配置
【发布时间】:2018-12-02 19:59:09
【问题描述】:

我正在用我的 Raspberry Pi 3 制作一个谷歌助手,我只是想像在文档 (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.

我已尝试进行故障排除,但似乎没有任何效果。我完全迷失在这里。任何帮助表示赞赏!

谢谢!

【问题讨论】:

    标签: raspberry-pi google-assistant-sdk


    【解决方案1】:

    结果我只需要在命令末尾添加设备型号 ID 和项目 ID 即可注册。

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-06
      • 1970-01-01
      • 2017-12-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多