Embed the Google assistant in a Windows computer - device instance ID not generated while running the sample code

心已入冬 提交于 2019-12-25 19:46:16

问题


I am trying to get Google Assistant installed on a Windows computer, following the instructions from Set Up Hardware and Network Access (Google Assistant SDK).

I have been able to complete all but the last step. I am at the point of running the sample code. https://developers.google.com/assistant/sdk/guides/service/python/embed/run-sample?refresh=1.

In this last step a 'device instance ID' should be generated, but that does not happen. See the screenshot:

The error message states that the client type needs to be specified as SDK_LIBRARY or SDK_SERVICE. However, when registering the model the '--client-type [SERVICE|LIBRARY]' option is not allowed (see Registration Tool Help).

How can I run the sample code ... so that it generates a 'device instance ID'?

My problem seems to be similar to an issue reported by another user. This user reported the issue however for the Raspberry Pi, while I am reporting it for a Windows computer. See Raspberry Pi and Google Voice client type


回答1:


Navigate to the folder you downloaded the client secrets JSON file to, and paste in the following code:

googlesamples-assistant-devicetool --project-id PROJECT_ID register-model --model 'my-model-identifier' --type LIGHT --trait action.devices.traits.OnOff --manufacturer 'Assistant SDK developer' --product-name 'Assistant SDK light' --description 'Assistant SDK light device'

NB: Replace all details with the correct corresponding details.



来源:https://stackoverflow.com/questions/48172989/embed-the-google-assistant-in-a-windows-computer-device-instance-id-not-genera

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!