将Google助手嵌入到Windows计算机中-运行示例代码时不会生成设备实例ID [英] Embed the Google assistant in a Windows computer - device instance ID not generated while running the sample code

查看:140
本文介绍了将Google助手嵌入到Windows计算机中-运行示例代码时不会生成设备实例ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照

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).

除了最后一步,我已经能够完成所有步骤.我正在运行示例代码. https://developers.google.com/assistant/sdk/guides/service/python/embed/run-sample?refresh = 1 .

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.

在最后一步中,应生成设备实例ID",但这不会发生.查看屏幕截图:

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

该错误消息指出需要将客户端类型指定为SDK_LIBRARY或SDK_SERVICE.但是,在注册模型时,不允许使用'--client-type [SERVICE | LIBRARY]'选项(请参见

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).

如何运行示例代码...以便它生成设备实例ID"?

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

我的问题似乎与另一个用户报告的问题相似.但是,此用户报告了Raspberry Pi的问题,而我正在报告Windows计算机的问题.请参见 Raspberry Pi和Google语音客户端类型

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

推荐答案

导航到将客户端密钥JSON文件下载到的文件夹,并粘贴以下代码:

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.

这篇关于将Google助手嵌入到Windows计算机中-运行示例代码时不会生成设备实例ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆