谷歌助手在树莓皮3分割fau

2024-10-01 19:24:10 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图让谷歌助手运行在树莓皮3。我遇到了一个错误

(env)pi@raspberrypi:~$ googlesamples-assistant-hotword --project-id buddy-fca9f --device-model-id xxxx-xxxxx-xxxx-xxxx.

device_model_id: xxxx-xxxx-xxxx-xxxx
device_id: DBxxxxxxxxxxxxxxxxxx

 Segmentation fault

我跟随https://developers.google.com/assistant/sdk/guides/library/python/embed/run-sample进行设置。在

我已经用注册工具注册了我的设备,但它帮不了我。 另一方面,pushtotalk正在按预期工作。若你们能帮我解决问题或者给我指出正确的方向就太好了。在


Tags: envprojectidmodeldevice错误助手pi
2条回答

同样的问题。在

不知道为什么如果我们没有提供 project-id它工作,但有一个警告说设备还没有注册。在

这是当我们同时使用 project-id和{}时的结果:https://developers.google.com/assistant/sdk/guides/library/python/

device_model_id: smartbox-228605-my-model
device_id: EF949BCF913C3206EEA22E2B28E402CX

Segmentation fault

这是当我们只使用 device-model-id以上教程的旧版本)时的结果:

^{pr2}$

这就是我所做的:

  • $ apt-get update
  • 在控制台上创建新项目
  • (确保其他API在Google上激活一些API)
  • 使用googlesamples-assistant-devicetool注册设备
  • 尝试新安装的raspbian操作系统(桌面和lite

这是我没有做的:

  • 在Google云控制台上启用计费(如果是这样,那么我就完成了;-)

但是在等待bug时,您可以通过访问以下内容使用另一个google助手hotword示例:google-assistant-demo project-id YOUR-ID-PROJECT device-model-id YOUR-ID-MODEL 参考号:https://github.com/googlesamples/assistant-sdk-python/issues/314 或者只是创造你自己的hotword.py从存储库:https://github.com/googlesamples/assistant-sdk-python/tree/master/google-assistant-sdk/googlesamples/assistant/library

希望能有所帮助。在

我通过将库升级到v1.0.1解决了这个问题,方法是在env中运行这个库

python -m pip install  upgrade google-assistant-library==1.0.1

This有帮助。在

相关问题 更多 >

    热门问题