在阅读本文之前,您首先应该知道的是,没有用于Windows 10的官方(Windows 10)Google Assistant客户端。
解决方法是由开发人员Melvin Abraham创建的(Melvin Abraham)Windows 10自定义克隆,可通过 GitHub(via GitHub)获得。
有一些设置过程可以使其正常工作,但我们将在本指南中引导您完成整个过程。
(Google Assistant)适用于Windows 10的(Windows 10)Google 助理功能
这个非官方的 Windows 10 版本的Google Assistant支持大多数与官方版本的(Google Assistant)Google Assistant相同的命令。
这包括查看天气和新闻、将项目添加到您的待办事项以及控制Google Home 智能家居设备(Google Home smart home devices)。
但是,它不支持某些功能,例如使用“OK Google”启动命令或继续(Continued) 对话(Conversation)功能。
如何为Google 助理准备(Google Assistant)您的计算机(Your Computer)
由于适用于Windows 10的(Windows 10)Google 助理(Google Assistant)应用程序是用Python编写的,因此您需要下载最新版本的Python并将其安装到您的 PC 上才能正常工作。
1.将Python 下载(Download Python)到您的计算机。
2. 下载后运行可执行安装程序。
3. 在安装程序窗口中,启用将 Python 3.9 添加到 PATH(Add Python 3.9 to PATH)(您的Python版本可能不同)。然后选择立即安装(Install Now)。
4. 打开文件资源管理器(File Explorer)并在您的根驱动器上创建一个名为GoogleAssistant的新文件夹。例如:C:\GoogleAssistant。
现在您的计算机已准备好安装适用于Windows 10的(Windows 10)Google 助理(Google Assistant),您需要为您的Google 帐户(Google Account)设置正确的权限和身份验证,以使其正常运行。
如何设置Google 帐户身份验证(Google Account Authentication)
打开网络浏览器并导航到Google Cloud。在您的个人资料图片旁边的右上角选择控制台。(Console)
注意:此过程有很多步骤,但如果您一次只执行一个步骤并按照说明进行操作,则应该只需要 10 到 15 分钟。
1. 在Google Cloud Platform窗口中,选择左上角的向下箭头选择一个项目。在Select a project窗口中,选择New Project。
2. 将项目命名为Win10GoogleAssist。选择创建(Create)以继续。
3. 您会在右上角看到一条通知。单击(Click)选择项目(Select Project)以打开您的新项目。
4. 在中心API(APIs)部分,选择转到 API 概览(Go to APIs overview)。
5. 在窗口顶部,选择启用 API 和服务(Enable APIs and Services)。
6. 在下一个窗口中,在搜索字段中输入google assistant 。从结果列表中选择Google Assistant API 。
7. 在下一个屏幕上,选择蓝色的启用(Enable)按钮。
8. 现在您将在屏幕顶部看到一条有关为此API创建凭据的消息。(API)选择创建凭据(Create Credentials)按钮。
9. 您会看到需要填写的表格。您使用的是哪个 API?(Which API are you using?),从下拉列表中选择Google Assistant API 。
10.你将从哪里调用 API?(Where will you be calling the API from?),选择其他 UI(例如 Windows、CLI 工具)(Other UI (e.g. Windows , CLI tool))。
11. 对于您将访问哪些数据(What data will you be accessing),选择用户数据(User data)。然后选择我需要什么凭据?(What credentials do I need?)
12. 将显示一个弹出窗口供您设置OAuth同意。选择设置同意屏幕(Set Up Consent Screen)。
13. 在用户类型(User Type)窗口中,选择外部(External),然后选择创建(Create)按钮。
14. 在编辑(Edit)应用注册下,填写应用(App)信息字段。您可以为应用程序名称指定(App name)任何名称,但最好使用您在第 2 步中使用的相同应用程序名称,这样更容易记住。在用户支持电子邮件(User support email)字段 中填写(Fill)您的电子邮件。
15. 在开发者联系信息(Developer contact information)字段中填写相同的电子邮件,然后选择保存并继续(Save and Continue)。
16. 下一页将显示有关“范围”的信息。你可以忽略这个。滚动到底部并选择保存并继续(Save and Continue)。
17. 最后,您需要添加测试用户(users)来完成此部分。在测试(Test) 用户(users)部分中,选择添加用户(Add Users)。
18. 在添加(Add)用户窗口中,在字段中输入您的电子邮件地址并选择添加(Add)。
19.向下滚动(Scroll)到上一个表单的底部,然后选择保存并继续(Save and Continue)。
现在您的Google Assistant API已启用,并且您已为您自己的Google帐户提供了访问API的必要权限。
设置 Google 操作
下一步是使用Google Actions服务启用Google Assistant操作触发器,并检索Google Assistant for Windows 10应用程序将需要的Oauth文件。
1. 转到Google Actions Console并选择New Project。选择是(Yes)同意服务条款。然后选择同意并继续(Agree and continue)。
2. 选择Win10GoogleAssist作为项目名称,然后选择Import project。
3.向下滚动(Scroll)到底部,然后选择您正在寻找设备注册(Are you looking for device registration?)旁边的单击此处吗?(Click here)
4. 在下一页选择注册模型(Register Model)。
5. 在注册型号(Register Model)页面上,输入任何产品名称和公司名称。然后选择设备类型下拉菜单并选择任何设备。然后选择注册模型(Register Model)。
6. 选择下载 Oauth 2.0 凭据(Download Oauth 2.0 credentials)。将身份验证文件保存在计算机上您将在下一节中记住的任何位置。
您终于可以在您的计算机上安装适用于Windows 10的(Windows 10)Google 助理(Google Assistant)了!
(Install Google Assistant)安装适用于Windows 10的(Windows 10)Google 助理
要安装应用程序,您需要从GitHub页面下载文件并运行Python应用程序。
1. 转到GitHub Releases 页面(GitHub Releases page)并下载适用于 windows 的应用程序的最新版本(.exe文件)。
2. 下载后,将文件保存到 C:GoogleAssistant,然后右键单击文件并选择以管理员(Run as administrator)身份运行以运行它。在第一步中,选择为所有用户安装它,然后选择Next。
3. 将安装路径更改为您创建的目录,然后选择Install。
4. 安装应用程序后,启用Run Google Assistant复选框并选择Finish。然后应用程序将启动。您会在任务栏上看到Google 助理(Google Assistant)图标。右键单击该图标并选择Launch Assistant。
5. 您可能想开始使用Google 助理(Google Assistant),但它还不能工作。您需要使用您的Google帐户进行身份验证。为此,请选择窗口左下角的开始。(Get Started)
6. 您会看到一条通知消息。选择继续(Proceed)以继续。
7. 您将看到设置OAuth凭据的说明。选择窗口左上角的齿轮图标来执行此操作。
8. 在“设置”(Settings)窗口中,选择“浏览(Browse)”按钮并浏览到您之前在此过程中保存的Oauth文件。(Oauth)您可以将Saved Tokens Path留空。选择保存(Save)以继续。
9. 你会看到一个关于Saved Tokens Path(Saved Tokens Path)的弹出窗口。选择自动设置路径(automatically set a path)。
10. 系统会提示您重新启动Google Assistant。当您这样做时,它会打开一个浏览器窗口,您需要在其中登录您的Google帐户。接受所有权限请求,然后复制Google提供的令牌代码。将其粘贴到Google 助理(Google Assistant)窗口的代码字段中。完成后选择提交(Submit)。
11. 最后一次通过选择重新启动助手重新启动(Relaunch Assistant)。这一次,Google Assistant将启动,但现在已连接到您的Google帐户。
现在,您可以像在移动应用程序上一样使用适用于Windows 10的(Windows 10)Google Assistant 。您甚至会听到相同的声音来回应(same voice in response)您的询问。
大多数Google 助理查询(Google Assistant queries)都会正常工作。如果您尝试使用Google帐户应用程序(例如日历(Calendar)),该应用程序将与您手机上的Google 助理(Google Assistant)应用程序连接,您需要在其中添加新设备并为其授予权限。
现在您在 Windows 10 计算机上安装了 Google助理(Assistant),即使您不使用移动设备,您也可以享受数字助理带来的所有便利和自动化!(automations)
How to Use Google Assistant on Windows 10
Thе first thing you should know before reading this article іs that there’s no such thing as an official Google Assistant client for Windows 10.
The workaround is a customized clone for Windows 10 created by developer Melvin Abraham and available via GitHub.
There is a little bit of a setup process to get it working properly, but we’ll walk you through the entire process in this guide.
Google Assistant for Windows 10 Features
This unofficial Windows 10 version of Google Assistant supports most of the same commands that the official version of Google Assistant does.
This includes checking the weather and news, adding items to your to-do list, and controlling Google Home smart home devices.
However, there are some features it doesn’t support such as initiating commands with “OK Google” or the Continued Conversation feature.
How to Prepare Your Computer for Google Assistant
Since the Google Assistant app for Windows 10 is written in Python, you’ll need to download and install the latest version of Python to your PC for it to work.
1. Download Python to your computer.
2. Run the executable installer after it downloads.
3. On the installer window, enable Add Python 3.9 to PATH (your Python version may be different). Then select Install Now.
4. Open File Explorer and create a new folder on your root drive called GoogleAssistant. For example: C:\GoogleAssistant.
Now that your computer is ready to install Google Assistant for Windows 10, you’ll need to set up your Google Account with the right permissions and authentication to make it all work.
How to Set Up Google Account Authentication
Open a web browser and navigate to Google Cloud. Select Console at the upper right next to your profile image.
Note: This process has a lot of steps, but if you just take it a step at a time and follow the instructions this should only take 10 to 15 minutes.
1. On the Google Cloud Platform window, select the down arrow at the upper left to select a project. In the Select a project window, select New Project.
2. Name the project Win10GoogleAssist. Select Create to continue.
3. You’ll see a notification at the upper right. Click on Select Project to open your new project.
4. In the center APIs section, select Go to APIs overview.
5. At the top of the window, select Enable APIs and Services.
6. On the next window, type google assistant in the search field. Select Google Assistant API from the results list.
7. On the next screen, select the blue Enable button.
8. Now you’ll see a message about creating credentials for this API at the top of the screen. Select the Create Credentials button.
9. You’ll see a form you need to fill out. For Which API are you using?, select Google Assistant API from the dropdown list.
10. For Where will you be calling the API from?, select Other UI (e.g. Windows , CLI tool).
11. For What data will you be accessing, select User data. Then select What credentials do I need?
12. A popup window will display for you to set up OAuth consent. Select Set Up Consent Screen.
13. On the User Type window, select External and then select the Create button.
14. Under Edit app registration, fill out the App information fields. You can give the App name any name, but it’s best to use the same app name you used in step 2 so it’s easier to remember. Fill in your email into the User support email field.
15. Fill the same email into the Developer contact information field, and select Save and Continue.
16. The next page will display information about “scopes”. You can ignore this. Scroll to the bottom and select Save and Continue.
17. Finally, you’ll need to add test users to complete this section. In the Test users section, select Add Users.
18. In the Add users window, enter your email address into the field and select Add.
19. Scroll down to the bottom of the previous form and select Save and Continue.
Now your Google Assistant API is enabled and you’ve provided the necessary permissions to your own Google account to access the API.
Set Up Google Actions
The next step is to use the Google Actions service to enable Google Assistant action triggers, and retrieve the Oauth file that the Google Assistant for Windows 10 application is going to need.
1. Go to Google Actions Console and select New Project. Select Yes to agree to terms of service. Then select Agree and continue.
2. Select Win10GoogleAssist as the project name and select Import project.
3. Scroll down to the bottom and select Click here next to Are you looking for device registration?
4. On the next page select Register Model.
5. On the Register Model page, type any product name and company name. Then select the device type dropdown and pick any device. Then select Register Model.
6. Select Download Oauth 2.0 credentials. Save the authentication file anywhere on your computer that you’ll remember in the next section.
You’re finally ready to install Google Assistant for Windows 10 onto your computer!
Install Google Assistant for Windows 10
To install the app, you’ll need to download the files from the GitHub page and run the Python app.
1. Go to the GitHub Releases page and download the latest release of the app for windows (the .exe file).
2. Once downloaded, save the file to C:\GoogleAssistant and then right-click the file and select Run as administrator to run it. On the first step, select to install it for all users, and then select Next.
3. Change the install path to the directory you created and select Install.
4. Once the application is installed, leave the Run Google Assistant checkbox enabled and select Finish. The application will then launch. You’ll see the Google Assistant icon on the taskbar. Right-click the icon and select Launch Assistant.
5. You may want to start using Google Assistant, but it won’t work yet. You need to authenticate with your Google account. To do this, select Get Started at the lower left corner of the window.
6. You see a notification message. Select Proceed to continue.
7. You’ll see instructions to set up your OAuth credentials. Select the gear icon at the upper left corner of the window to do this.
8. In the Settings window, select the Browse button and browse to the Oauth file that you saved earlier in this procedure. You can leave the Saved Tokens Path blank. Select Save to continue.
9. You’ll see a pop-up window about the Saved Tokens Path. Select automatically set a path.
10. You’ll be prompted to relaunch Google Assistant. When you do, it’ll open a browser window where you’ll need to log into your Google account. Accept all permissions requests and then copy the token code that Google provides. Paste it into the code field in the Google Assistant window. Select Submit when you’re done.
11. Relaunch one last time by selecting Relaunch Assistant. This time, Google Assistant will launch but is now connected with your Google account.
Now you can use Google Assistant for Windows 10 just as you would use it on the mobile app. You’ll even hear the same voice in response to your queries.
Most Google Assistant queries will work as normal. If you try to use Google account apps like Calendar, the app will connect with the Google Assistant app on your phone where you’ll need to add the new device and give it permissions.
Now that you have Google Assistant on your Windows 10 computer, you can enjoy all of the convenience and automations that come from having a digital assistant, even when you’re not using your mobile device!