谷歌助手在树莓派分割错误



使用本指南在我的pi上安装Google助手: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

我遇到了同样的问题。

我继续阅读页面: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.

所以我点击了链接并在我的谷歌帐户下启用了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

现在它工作正常。

我遇到了同样的问题。经过大量研究,我发现有新版本的google-assistant-library

一旦我将其从 1.0.1 升级到 v1.0.0,问题就解决了。

打开您的环境并运行

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

如果有任何问题,请告诉我。

我在 Ubuntu 助手设置中遇到了同样的问题,我发现我的谷歌助理 api 没有启用。我从 api 控制台启用它并开始工作。

我在RPi4中遇到了同样的问题。 最后,这个问题被新版本的谷歌助手库修复了,

1.1.0而不是1.0.1版本:
python -m pip install --upgrade google-assistant-library==1.1.0

最新更新