我对Google指南(https://developers.google.com/assistant/sdk/guides/service/python/extend/handle-device-commands)中的开/关操作配置有疑问。
助手在按钮上起作用,我按照指南进行了所有操作,但是运行“ python pushtotalk.py”后出现错误
(env) pi@raspberrypi:~/assistant-sdk-python/google-assistant-sdk/googlesamples/assistant/grpc $ python pushtotalk.py Traceback (most recent call last): File "pushtotalk.py", line 423, in <module> device_handler = device_helpers.DeviceRequestHandler(device_id) NameError: name 'device_id' is not defined
但是当我将device_id ='id'行添加到pushtotalk.py时,不会发生任何错误,但是什么也没有发生。
有人可以帮我吗?