google-assistant-sdk - Raspberry pi 上的 Google Assistant 段错误

标签 google-assistant-sdk

使用本指南在我的 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-sdk - Raspberry pi 上的 Google Assistant 段错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50440960/

相关文章:

python - 当我尝试在树莓派上运行谷歌助手时出现此错误

actions-on-google - 如何从 google home 的语音匹配配置文件中获取用户的唯一身份?

android - 当用户对 Google Assistant 说 "Hey Google, turn on the light"时,我们是否需要 Google 的特殊许可才能接收命令?

dialogflow-es - 使用 webhook 的操作正在响应 : "Sorry, I didn' t get any response. "

python - 在 Windows 中启用 Google 助理

python - 没有名为 pathlib2 的模块

android - 谷歌助手安卓集成

android - 我如何使用 android 应用程序与 google home mini 设备通信,反之亦然

raspberry-pi3 - Google 上的操作未显示设备注册选项

android - 如何从 Google 语音助手访问我的 Android 应用程序