LoginSignup
1
0

More than 3 years have passed since last update.

ラズパイで作ったスマートスピーカーでGoogle Assistantのデモプログラムを実行したい,Segmentation fault

Posted at

Segmentation fault

RaspberryPiでGoogleのAssitantAPIでAIスマートスピーカーを自作し、Google Assistantのデモプログラムをgoogle-assistant-demoコマンドで実行したのですがSegmentation faultになってしまいました。(注:プログラム上()で囲まれたIDなどは、自分のIDと読み替えてください。)

(env)$google-assistant-demo --project-id (自分のプロジェクトID) \
> --device--model-id (デバイスモデルID)
Segmentation fault

解決法

Assistant Libraryのバージョンが1.0.1から1.1.0にバージョンアップすると上手くいきました。

$python -m pip install --upgrade google-assitant-library==1.1.0

バージョアップ後に再度デモプログラムを実行しましたが上手くいかず、認証情報の登録をやり直すと上手くいきました。一応認証のプログラムを載せておきます。

$google-oauthlib-tool \
 --scope https://www.googleapis.com/auth/assistant-sdk-prototype \
 --scope https://www.gooogleapid.com/auth/gcm \
 --save --headless --client-secrets [クライアントIDのパス].json

参考文献

吉田顕一「RaspberryPi+AI電子工作超入門」ソーテック社、2019年
https://github.com/googlesamples/assistant-sdk-python/issues/314

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0