我正在用我的树莓派3制作一个谷歌助手,我只是想像文档(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.我试过排除故障,但似乎什么都不起作用。我完全迷失在这里了。感谢任何人的帮助!
谢谢!
发布于 2018-12-03 04:48:19
所以,我只需要在命令的末尾添加设备型号id和项目id,这样它就可以注册了。
googlesamples-assistant-pushtotalk --device-model-id <device model id> --project-id <project id>
我希望这对其他人有帮助!
https://stackoverflow.com/questions/53584065
复制相似问题