Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
141 views
in Technique[技术] by (71.8m points)

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

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:

Enter image description here

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...