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

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

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 .

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

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

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

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

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

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.

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

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.

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

Name your project and click Create .

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

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

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

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

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

Here, type Google Assistant on the search bar.

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

Select Google Assistant API and click the Enable button.

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

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? .

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

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

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

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

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

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.

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

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

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

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]

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

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.

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

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.

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

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 

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

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!

3.3 ★ | 3 Vote