sgunji’s blog

ものづくりやプログラミングなど…最近はXamarinを少々

Raspberry Pi 3 ver.2で Google Assistant SDK を試してみる(日本語で)。その2

前回以下の記事のとおり、
sgunji.hatenablog.jp

{
  "error": {
    "code": 403,
    "message": "The request is missing a valid API key.",
    "status": "PERMISSION_DENIED"
  }
}

で止まってしまっていたのですが、
色々周りに聞きながら試行錯誤(ほとんど自分は何もしていない)していたら、

googlesamples-assistant-hotword --project_id my-dev-project --device_model_id my-model

ではなく、

googlesamples-assistant-hotword --device_model_id my-model

とすることで無事認識してくれました。

このままだとhotwordは日本語に対応していないので、
Googleアシスタントから直接設定してやる必要があります。

Googleアシスタントを開き設定を押します。
f:id:sgunji:20180110221713p:plain

バイス作成時に付けた名前のデバイスを選択します。
f:id:sgunji:20180110221754p:plain

アシスタントの言語を選択し、日本語にします。
f:id:sgunji:20180110221849p:plain

住所とかも登録しておくと、天気とかを現在地で調べてくれます!

動いて良かった!