繁体   English   中英

Raspberry Pi 3 上的 Google Assistant 分段错误

[英]Google Assistant on Raspberry Pi 3 Segmentation fault

我正在尝试让谷歌助手在 Raspberry Pi 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正在按预期工作。 如果您能帮助我或为我指明正确的方向,那就太好了。

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

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

这有帮助。

同样的问题在这里。

不知道为什么如果我们没有提供--project-id它可以工作但有警告说设备尚未注册。

这是我们按照此页面上的说明同时使用--project-id--device-model-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上面教程的旧版本)时的结果:

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


    This device is not registered. This means you will not be able to use
    Device Actions or see your device in Assistant Settings. In order to
    register this device follow instructions at:

    https://developers.google.com/assistant/sdk/guides/library/python/embed/register-device

ON_MUTED_CHANGED:
  {"is_muted": false}
ON_MEDIA_STATE_IDLE
ON_START_FINISHED

这就是我所做的:

  • $ apt-get update
  • 在控制台上创建新项目
  • 确保在项目上启用了 Google Assistant API(甚至激活了一些其他火灾,例如:Action API
  • 使用googlesamples-assistant-devicetool注册设备
  • 尝试新安装的 raspbian 操作系统(桌面版和精简版

这是我没有做的:

  • 在 Google Cloud Console 上启用计费(如果是这种情况,那么我就完成了;-))

但是在等待错误时,您可以通过访问以下内容来使用另一个谷歌助手启动指令示例: 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

希望它有所帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM