我一直在努力在我的windows10电脑上安装Google助手,我已经做好了“注册设备”的工作了。
Developers.google.com
表示运行以下命令以注册您的设备。在
googlesamples-assistant-devicetool register-model --manufacturer "Assistant SDK developer" \
--product-name "Assistant SDK light" --type LIGHT --model my-model
我对Windows(和我)的结论是:
^{pr2}$但是,当我运行它时,我得到了错误
Error: Error loading client secret: [Errno 2] No such file or directory: 'client_secret_XXX.apps.googleusercontent.com.json'.
Run the device tool with --client-secrets or --project-id option.
Or copy the client_secret_XXX.apps.googleusercontent.com.json file in the current directory.
所以我编辑命令:
googlesamples-assistant-devicetool register-model --manufacturer "Assistant SDK developer" --product-name "Assistant SDK light" --type LIGHT --model 'Sudda2252' --client-secrets "C:\Users\Sudda\Desktop\GoogleAss\client_secret_XXX.json"
其中错误是:
Error: no such option: --client-secrets
请帮助我哪里出了问题?在
另外,
我尝试过直接启动Google助手,但它返回一个错误
ERROR:root:Option --device-model-id required when registering a device instance.
参考文献:
谢谢, 苏达
编辑:我的解决办法曾经奏效,但后来就没用了。停止工作。
谢谢@Nick Feller的努力,但没有成功。
要么我的电脑有问题:D,要么我们在这里遗漏了什么。在
在devicetool中,^{} 参数与工具本身有关,而不是the command。在
正确的论证顺序是:
googlesamples-assistant-devicetool client-secrets register-model ...
Google和最终用户经常犯的一个错误是命名您的CclientSecret文件。Google会自动为你的CS命名,并在文件名末尾附加一个(1)。要设置G助手
googlesamples-assistant-devicetool register-model manufacturer "Assistant SDK developer" product-name "Assistant SDK light" type LIGHT model Sudda2252
googlesamples-assistant-pushtotalk project-id ##MODEL## device-model-id Sudda2252
其中#####MODEL##=您的项目名称。在googlesamples-assistant-pushtotalk
来启动G助手。在相关问题 更多 >
编程相关推荐