关于Raspberry pi Segmentation故障的Google智能助理

Kin*_*zel 7 google-assistant-sdk

本指南对我PI安装谷歌助理:https://developers.google.com/assistant/sdk/guides/library/python/embed/run-sample

(env) pi@raspberrypi:~ $ source env/bin/activate
    (env) pi@raspberrypi:~ $ googlesamples-assistant-hotword --project_id 'celius-54926' --device_model_id 'celius-54926-celius-qyn1r6'
    device_model_id: celius-54926-celius-qyn1r6
    device_id: A1CE24415E5C880BCA74644CD6315DC2

    Segmentation fault
Run Code Online (Sandbox Code Playgroud)

小智 6

我遇到过同样的问题.

我继续阅读页面:https://developers.google.com/assistant/sdk/guides/library/python/embed/run-sample ,标题为"查找设备实例ID",似乎我的设备未注册.

所以我在pi上通过帮助页面手动注册了设备:https: //developers.google.com/assistant/sdk/reference/device-registration/device-tool#register-device.

(env) pi@raspberrypi:~ $  googlesamples-assistant-devicetool --project-id YOUR_DEVICE_ID register-device --device 4D609xxxxxxxxxxxxxxxxxxx --model YOUR_MODEL_ID --client-type SERVICE
Creating new device
Error: Failed to register device: 403
Google Assistant API has not been used in project 5739xxxxxxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/embeddedassistant.googleapis.com/overview?project=5739xxxxxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Run Code Online (Sandbox Code Playgroud)

所以我按照链接启用了我的Google帐户下的API,然后重试.

(env) pi@raspberrypi:~ $ googlesamples-assistant-devicetool --project-id YOUR-PROJECT-ID register-device --device 4D60xxxxxxxxxxxxxxx --model YOUR_MODEL_ID --client-type SERVICE

Creating new device

Device instance 4D60xxxxxxxxx successfully registered
Run Code Online (Sandbox Code Playgroud)

现在它工作正常.