How to Install Google Assistant on Windows, macOS and Linux

Google Assistant is gaining ground these days and giving tough competition to its competitors Siri and Bixby. Though Google Assistant is not perfect (like others), people were making a beeline for it to get it on any Android phone. And now they are asking for more. Yeah, users now want to install Google Assistant on Windows, macOS and Linux.

This cross-breeding of Google Assistant stems from the fact that the AI assistant is gaining ground among almost all Android users across the world. We have listed a method that includes the use of Terminal (Command Prompt on Windows), and there is no Graphical user interface involved during the procedure. So let’s get started with how you can install Google Assistant on Windows, macOS, and Linux.

Before you install Google Assistant…

On your macOS and Linux, you have to use Terminal and on Windows, you should use Command Prompt to install and run Google Assistant.

You need Python 3 on your computers. Mac and Linux users don’t have to download Python as it is preinstalled; normally, they have version 2.x. Make sure you visit Python website and download Python 3.x to use Google Assistant.

How to Set up Google Assistant API

Before installing Google Assistant on Windows, Linux, and Windows, you need configure Google Assistant API. Follow the steps…

Step #1: Open console.cloud.google.com in your web browser and log in with your Google account.

Step #2: Next, click on Select a project drop-down menu, which is next to Google Cloud Platform.

Step #3: A small window will open and you need to click on ‘+’ icon, which is ‘Create project’.

Step #4: You should assign a suitable name to your project. Then, click on ‘Create’ button.

Step #5: After a couple of seconds, you will be landed on ‘Getting started’ screen, where you will find different clickable boxes. Click on: Create Project: Your Project Name (I named it Personal Google Assistant).

Step #6: Now, click on API Manager from the left navigation panel.

Step #7: Another small menu appears there with three options: Dashboard, Library, and Credentials. You need to click on Library.

Step #8: In the search box, type in Google Assistant. Below the search bar, you can see Google Assistant API enabled. Click on Google Assistant API.

Step #9: You are now on Google Assistant API page; click on ENABLE button, which is next to Google Assistant API.

Step #10: To use API, you need credentials, and hence, click on ‘Create credentials’ button, which is in blue.

Step #11: A form will open up and you have to make some selections.

Select ‘Other UI (e.g. Windows, CLI tool)’ under ‘Where will you be calling the API from?’
Next, there are two radio buttons under “What data will you be accessing?” Here, select ‘User Data’.

Now hit ‘What credentials do I need?’ button in blue.

Step #12: You are now on ‘Add credentials to your project’ page.

Under “Create an OAuth 2.0 client ID”, you can give a name you wish. After assigning a name, click on ‘Create client ID’ button.

Step #13: Next, write your project name in the ‘Product name’ field below your registered Gmail address. And then click on Continue button.

Step #14: On the next screen, you will be prompted to download credentials. You can do this later, click on Done button.

Step #15: Now go to Activity Controls page and you will see several toggles like Web & Page Activity, Location History, Device Information, Voice & Audio Activity, YouTube Search History, YouTube Watch History etc. You need to turn all toggles ON.

This will help you get personalized responses from Google Assistant.

Go back to Google Cloud Platform screen, where you can see client ID you have created for the project. Here, click on download icon, which can be seen in the extreme right side in the row of your client ID. It’s a JSON file you need to download on your computer.

How to Install Google Assistant Sample Project

Step #1: Open Terminal on Mac and Command Prompt on Windows, and then enter following command:

python3 -m pip install google-assistant-sdk[samples] (Mac)

py -m pip install google-assistant-sdk[samples] (Windows)

Step #2: After above command, type another command:

python3 -m googlesamples.assistant.auth_helpers --client-secrets "path_to_the_downloaded_JSON_file" (Mac)

py -m googlesamples.assistant.auth_helpers --client-secrets path\to\your\client_secret_XXX.apps.googleusercontent.com.json (Windows)

Step #3: Consequently, you will receive a URL in the Terminal. Open the URL in your web browser, and then copy+paste the confirmation code appears on the web page in the Terminal and then hit Enter button.

How to Use Google Assistant on Mac, Windows, and Linux

After finishing an exhaustive process, it’s time to use Google Assistant on your Mac, Windows, and Linux systems.

Step #1: Open Terminal and run following command:

python3 -m googlesamples.assistant.audio_helpers (Mac)

python -m googlesamples.assistant.audio_helpers (Windows)

A five-second audio recording will begin; the recording will be played back. If you can listen to the playback successfully, you can now use Google Assistant.

Run following command and use Google Assistant on Windows, Linux, and Mac.

python3 -m googlesamples.assistant (Mac)

python -m googlesamples.assistant (Windows)

That’s it! Now start using Google Assistant on Windows, Mac, and Linux. You can use Google Assistant the way you use it on Android and Google Home.

Google Assistant is an intelligent tool you can use for multiple tasks. You can also set up payments with Google Home and Google Assistant. If you have created a smart home, where everything can be controlled by your voice, go for setting up Google Assistant to control your smart home devices.

Note that Google is constantly tracking commands you send to Google Assistant. If this seems like an intrusion to your privacy, you can delete Google Assistant voice recordings data.

If you are using Pixel phones, you can also set up and customize Google Assistant on Google Pixel and Pixel XL.

Like this information? Share your feedback with us on FacebookTwitter and Google Plus.

LEAVE A REPLY

Please enter your comment!
Please enter your name here