How to install the virtual assistant Google Assistant on a Windows computer

Google Assistant does not have a desktop version. However, thanks to the Google Assistant SDK, you can run this virtual assistant on any platform like Windows, Mac and Linux

Google Assistant is Google's intelligent virtual assistant with voice control using artificial intelligence. Today, there are many artificial intelligence assistants such as Amazon Alexa, Siri, Cortana, etc. but Google Assistant is one of the best assistants.

Google Assistant is available on most Android phones running Android 6.0 and above. You can even install Google Assistant on iPhone. But Google Assistant does not have a desktop version. However, thanks to the Google Assistant SDK, you can run this virtual assistant on any platform like Windows, Mac and Linux.

  1. What is Google Assistant?
  2. Useful Google Assistant Vietnamese commands that you can use
  3. How to change the voice in Google Assistant

Picture 1 of How to install the virtual assistant Google Assistant on a Windows computer

To run the virtual assistant Google Assistant on your computer, you need to follow the command line instructions. Here are some conditions needed to install Google Assistant on your computer:

  1. Use Command Prompt on Windows computer, Terminal on macOS.
  2. Install Python 3 on the system. On the Mac and Linux Python is pre-installed, so if you are a Windows user, you need to install Python 3 on this system.

Installing Python 3.x on Windows

First you need to download Python 3.x to your computer. After downloading double click on the python.exe file to run setup. Select Add Python 3.7 to PATH and click on Customize Installation .

Picture 2 of How to install the virtual assistant Google Assistant on a Windows computer

On the next page, select all options and click the Next button.

Picture 3 of How to install the virtual assistant Google Assistant on a Windows computer

Select the Add Python to environment variables option on the next screen.

Picture 4 of How to install the virtual assistant Google Assistant on a Windows computer

Finally, click the Install button, then wait a few seconds for Python to install on the computer. After successful installation, restart the computer.

Check out Python installation

Open Command Prompt as admin and type the following command, press Enter .

 Python 

If Python is installed, the above command will run the current version of Python on the computer.

Picture 5 of How to install the virtual assistant Google Assistant on a Windows computer

How to install the virtual assistant Google Assistant on Windows 10.

Step 1. Configure Google Assistant

First, you need to visit the Google Cloud Platform Console following the link below on a Windows computer.

 https://console.cloud.google.com/?hl=vi&pli=1 

Next, click the Create Project button.

Picture 6 of How to install the virtual assistant Google Assistant on a Windows computer

Name your project and click Create .

Picture 7 of How to install the virtual assistant Google Assistant on a Windows computer

Wait for the project to be created and after creating, click on the bell icon and select your project.

Picture 8 of How to install the virtual assistant Google Assistant on a Windows computer

On the project page, click APIs & Services> Library .

Picture 9 of How to install the virtual assistant Google Assistant on a Windows computer

Here, type Google Assistant on the search bar.

Picture 10 of How to install the virtual assistant Google Assistant on a Windows computer

Select Google Assistant API and click the Enable button.

Picture 11 of How to install the virtual assistant Google Assistant on a Windows computer

On the right, select Credentials and click on the Create Credential button.

Select the answers below in Add credentials in the project screen.

  1. Which API are you using?

Answer: Google Assistant API

  1. Where sẽ bạn cần đến các API từ?

Answer: Other UI (eg Windows, CLI tool)

  1. What data will you be accessing?

Answer: User data

After answering all the questions, click What credentials do I need? .

Picture 12 of How to install the virtual assistant Google Assistant on a Windows computer

In the next screen, enter the name of the Client ID and click Create OAuth Client ID .

Picture 13 of How to install the virtual assistant Google Assistant on a Windows computer

Select your email address and enter the product name for the user, then click Continue .

Picture 14 of How to install the virtual assistant Google Assistant on a Windows computer

You will see the option to download the login information, just click on it to download or leave the download later if you wish. It will automatically download the JSON file to your system and save it in an easily accessible place.

Picture 15 of How to install the virtual assistant Google Assistant on a Windows computer

After downloading, click on Done and open the Activity controls . Turn on all action controls and return to the Credentials page.

Picture 16 of How to install the virtual assistant Google Assistant on a Windows computer

Step 2. Install Google Assistant virtual assistant on Windows computer

Open Command Prompt as Admin and type the following command, then Best Enter for each command.

 py -m pip install google-assistant-sdk [samples] 
pip install - upgrade google-auth-oauthlib [tool]

Picture 17 of How to install the virtual assistant Google Assistant on a Windows computer

The above command will load the required dependencies in order to run the Google Cloud project. This process will take longer depending on your Internet speed.

  1. Speed ​​up Internet connection on Windows 10 computers
 google-oauthlib-tool –client-secrets path / to / XXXXX.json –scope https://www.googleapis.com/auth/assistant-sdk-prototype –save –headless 

Change the path / to / XXXXX.json with the real path and the JSON file name you downloaded earlier.

Picture 18 of How to install the virtual assistant Google Assistant on a Windows computer

When running the above command you will get the URL, copy and paste it into the browser. Select a Google account and you will receive an authentication code.

Picture 19 of How to install the virtual assistant Google Assistant on a Windows computer

Copy the authentication code and paste it into Command Prompt, then press Enter .

Step 3. Check Google Assistant

To check the Google Assistant, turn on your system speaker. After installing Google Assistant, the first thing you need to check is whether Assistant can record audio from the microphone.

To test, run the following command in Command Prompt. It will record 10 seconds and play for you.

 python -m googlesamples.assistant.audio_helpers 

After you have finished checking the audio recording, you can move on to the next step.

 python -m googlesamples.assistant 

Picture 20 of How to install the virtual assistant Google Assistant on a Windows computer

After running the command, wait for a few seconds when the Command Prompt appears and press enter to send a new request , press the Enter button. If you see any warning, just ignore it.

So Google Assistant has been successfully installed on your Windows computer. This Google Assistant API supports all commands that Google Assistant supports on Google Home and Android devices.

I wish you all success!

Update 26 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile