好吧,在我的 Windows 10 PC 上安装 Google Assistant 时遇到了多个错误,我通过访问此处解决了最后一个错误:Python3.6 OSX 上的 Google 助理安装
现在,我已经安装了所有东西,想要测试我的麦克风,然后开始使用助手。但是,当我输入命令时
python -m googlesamples.assistant.audio_helpers
and
python -m googlesamples.assistant
我收到此错误:
C:\Users\robmak3>python -m googlesamples.assistant
C:\Users\robmak3\AppData\Local\Programs\Python\Python36\python.exe: No
module named googlesamples.assistant.__main__; 'googlesamples.assistant' is
a package and cannot be directly executed
我一直在尝试遵循本指南:https://www.xda-developers.com/how-to-get-google-assistant-on-your-windows-mac-or-linux-machine/
任何帮助解决这个问题都会很棒!谢谢!
根据版本0.3.0
SDK 的 gRPC 示例使用不同的身份验证帮助程序。
pip install --upgrade google-auth-oauthlib[tool]
google-oauthlib-tool --client-secrets path/to/client_secret_XXXXX.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless
您可以使用以下命令启动更新 gRPC 示例:
python -m googlesamples.assistant.grpc.pushtotalk
您应该能够按照以下说明进行操作SDK包 and gRPC 包页面并探索参考sample
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)