问题
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