在 windows 台电脑上设置 google 助手

Setting up google assistant on windows PC

我按照下面 link 中的说明在我的 Windows PC 上设置了 google 助手。

https://developers.google.com/assistant/sdk/guides/library/python/

但是在 运行 hotword 命令的步骤中,我得到以下 error :

Traceback (most recent call last):
  File "c:\users0211247\appdata\local\continuum\miniconda3\lib\runpy.py",line 193, in 
_run_module_as_main
    "__main__", mod_spec)
  File "c:\users0211247\appdata\local\continuum\miniconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users0211247\AppData\Local\Continuum\miniconda3\Scripts\googlesamples-assistant-hotword.exe\__main__.py", line 5, in <module>
  File "c:\users0211247\appdata\local\continuum\miniconda3\lib\site-packages\googlesamples\assistant\library\hotword.py", line 27, in <module> from google.assistant.library import Assistant
ModuleNotFoundError: No module named 'google.assistant.library'

我该如何解决这个错误?

Compatibility section for the library, it is only supported on linux-armv7l and linux-x86_64 architectures. The library is not expected to work on a Windows device. Instead, you should look at using the service API 中所述。

Google推荐使用助手服务:

The Google Assistant Library for Python is deprecated as of June 28th, 2019

您可以按照以下说明配置助手:

https://developers.google.com/assistant/sdk/guides/service/python/

安装启动指令后,您需要安装助手库:

pip install google-assistant-library

然后您可以 运行 google 助手使用启动指令:

googlesamples-assistant-hotword --project-id project --device-model-id model