Google Assistant on Raspberry Pi 3 Segmentation fault

前提是你 提交于 2019-12-04 16:13:37

I solved it by upgrading the library to v1.0.1, through running this in the env

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

This helped.

Same issue here.

Not sure why if we didn't provide --project-id it working but has a warning said that the device is not registered yet.

this is the result when we use both --project-id and --device-model-id at the same time as instructed on this page : https://developers.google.com/assistant/sdk/guides/library/python/

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

Segmentation fault

and this is the result when we only use --device-model-id (the old version for the tutorial above):

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

and this is what I have done:

  • $ apt-get update
  • Create New project on the console
  • Make sure Google Assistant API is enable on the project (even to activate some other fires such as: Action API)
  • Register device using googlesamples-assistant-devicetool
  • Try on the newly installed raspbian operating system (both desktop and lite)

and this is what I have not done:

  • Enable billing on the Google Cloud Console (if this is the case then I am done ;-) )

but while waiting for the bugs you can use another google assistant hotword sample by accessing this : google-assistant-demo --project-id YOUR-ID-PROJECT --device-model-id YOUR-ID-MODEL reference : https://github.com/googlesamples/assistant-sdk-python/issues/314 or even just create you own hotword.py from the repository : https://github.com/googlesamples/assistant-sdk-python/tree/master/google-assistant-sdk/googlesamples/assistant/library

hope it help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!