带有Android Things的RPI3上的Google助手 [英] Google Assistant on RPI3 with Android Things

查看:99
本文介绍了带有Android Things的RPI3上的Google助手的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照文档并被卡住重点

I tried to follow the documentation and got stuck in the point

  1. 打开一个终端,并按照说明配置新的Python虚拟环境并安装`google-assistant-library.

此时链接重定向到常规页面(Google助手库简介)而不是说明. 我认为它没有解释打开终端的含义以及要遵循的确切步骤. 链接真的正确吗?

The link in this point redirects to a general page (Introduction to the Google Assistant Library) rather than the instructions. I think it misses the explanation what it means to open the terminal and exact steps to be followed. Is the link really correct?

也许我需要有关正确使用控制台的帮助,但我无法从该较差的文档中获得帮助. 我可以使用串行转USB电缆和腻子连接到RP.但是我根本不知道第11点及以后的含义是什么... 任何的想法? 谢谢

Maybe I need help in using the console correctly, but I am not getting it from that poor documentation. I can connect to RP with Serial to USB cable and Putty. But simply I do not know what that point 11 and onwards mean... Any idea? Thank you

推荐答案

似乎修改了Assistant SDK文档中的链接,但它应该指向

It looks like the links in the Assistant SDK docs were modified, but it should be pointing to this page:

sudo apt-get update
sudo apt-get install python3-dev python3-venv # Use python3.4-venv if the package cannot be found.
python3 -m venv env
env/bin/python -m pip install --upgrade pip setuptools
source env/bin/activate

python -m pip install --upgrade google-auth-oauthlib[tool]
google-oauthlib-tool --scope https://www.googleapis.com/auth/assistant-sdk-prototype \
      --save --headless --client-secrets /path/to/client_secret_client-id.json

这会将凭据保存在/path/to/.config/google-oauthlib-tool/credentials.json,您可以将其复制到您的项目中以对Google助手进行身份验证.

This will save the credentials at /path/to/.config/google-oauthlib-tool/credentials.json, which you can then copy into your project in order to authenticate the Google Assistant.

这篇关于带有Android Things的RPI3上的Google助手的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆