Google Raspberry Pi 3 段错误上的助手

Google Assistant on Raspberry Pi 3 Segmentation fault

我正在尝试在 Raspberry Pi 上获取 google 助手 运行 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 正在按预期工作。如果你能帮助我或为我指明正确的方向,那就太好了。

同样的问题。

不确定为什么我们不提供 --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助手API在项目上启用(甚至激活一些其他的火,例如:动作API
  • 使用 googlesamples-assistant-devicetool
  • 注册设备
  • 尝试新安装的 raspbian 操作系统(桌面版和精简版

这是我没有做过的:

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

但是 在等待错误的同时,您可以通过访问这个来使用另一个 google 助手热词示例: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 解决了这个问题,通过 运行 环境中的这个

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

This 有帮助。