How To Run Voice Activated Google Assistant on Windows PC?

0
Google Assistant is a powerful artificial intelligence which works as a voice-controlled virtual assistant. Unlike the earlier primitive version of Google Now, it facilitates two-way conversation.

There are many other virtual AI assistants available, like Cortana, Siri, Amazon Alexa, etc. But the Google assistant is one of its maneuvering kinds.

It can run on all Android Smartphones with Android 6.0 or above OS. The only setback it drags along is that there is no desktop version available for Google Assistant. Moreover, Google and Microsoft have not made any pact to run Google Assistant on Windows platform. Yet it is possible to run it on Windows OS environment.

For the record, the possibility has not been created for silly users who intend to replace Microsoft Cortana AI assistant with Google Assistant, but for Voice Application developers. Although, Cortana has been in collaboration with Amazon Alexa for a relatively long time, but has not yet worked together with Google Assistant.

Now the primary concern is that how it is possible to run Voice-controlled Google Assistant on Windows PC. Well, thanks to Google Assistant SDK. It lets you use Google Assistant on Windows, Linux, macOS, etc.

But first, you need to create a command-line instruction to establish Google Assistant on Windows platform.

What You Need to Run Voice-Controlled Google Assistant on Windows

Before you install Google Assistant, there are few pre-requisites you need to manage first.

  • Windows Command line interpreter that is Command Prompt and Terminal on macOS should be in a proper working mode to set up Google Assistant.
  • Next, you need to have Python 3 installed only on your Windows PC. Mac and Linux come with pre-installed Python so there is no hassle of installation there.

So, from the pre-requisite information, we can conclude, that we first need to install Python for Windows system.

#1: How to Install Python 3 on Windows PC

Step 1. Go the link given below to download Python 3 to your Windows PC.

Step 2. Open the “Download” section and double-click on the python.exe setup file.

Step 3. As the installation path proceeds, check the checkmark for “python 3.7 to PATH” and choose “Customize installation” option thereafter.

How To Run Voice Activated Google Assistant on Windows PC? (1)

Step 4. In the next “Optional Features” Window, ensure that all the options are checked and then click on the “Next” button to continue.

How To Run Voice Activated Google Assistant on Windows PC? (2)

Step 5. Now here comes the Windows for “Advanced Options”. Make sure that the option “Add Python to environment variables” is checked. Once you are done this far, click on the “Install” button to begin the installation process. It will take a few minutes so be patient while the installation continues.

How To Run Voice Activated Google Assistant on Windows PC? (3)

Step 6. Restart your Windows computer when the installation is completed.

#2: How to Check If Python is installed on your Windows Computer or Not

This is very essential before you start installing the Google Assistant to check if Python is properly installed or not. There are times when the installation process fails in the mid-day, and that might create problems intermittently while you try to run Google Assistant on the computer.

To do this, just open the Command prompt black dialogue box, type “Python” and hit “Enter”. If Python is properly installed on your system, then it will display the current Python version on your computer.

How To Run Voice Activated Google Assistant on Windows PC? (4)

#3: How to Install Google Assistant on Windows 10

Now, this is the serious part of the pursuit of running Google Assistant on Windows platform. But first, you need to create a Google Cloud Project platform for Google Assistant using your Google Account. So pay attention to every step mentioned below:

Step 1. First, visit the Google Cloud Platform Console on your Windows PC. Click on the link given below:

https://console.cloud.google.com/getting-started?pli=1

Step 2. Click on the “Create Project” button.

How To Run Voice Activated Google Assistant on Windows PC? (5)

Step 3. Provide a name for your project and click on the “Create” button.

How To Run Voice Activated Google Assistant on Windows PC? (6)

Step 4. Now you have to wait until your project is created. Once it is created click on the bell icon off the upper right corner icons and then select your project.

How To Run Voice Activated Google Assistant on Windows PC? (7)

Step 5. When the newly created project page opens up, go to the “APIs & Services” page, and choose “Library” option.

How To Run Voice Activated Google Assistant on Windows PC? (8)

Step 6. Now in the search console bar, type Google Assistant to search for it.

How To Run Voice Activated Google Assistant on Windows PC? (9)

Step 7. From the result list, select “Google Assistant” feature and click on the “Enable” button.

How To Run Voice Activated Google Assistant on Windows PC? (10)

Step 8. Next, off the right-hand side, choose “credentials” and then click on “Create Credential” option.

Step 9, Now there will be three questions that you have to answer in the “Add credentials to your project” page. Follow the answers given in the picture below.

Step 10. Once you have added the answers to your credentials, click on “what credentials do I need?”

How To Run Voice Activated Google Assistant on Windows PC? (11)

Step 11. On the next page that ensues, type the name of the client ID and click on “Create OAuth Client ID” button.

How To Run Voice Activated Google Assistant on Windows PC? (12)

Step 12. Next, choose your email address and the product name, which is Google Assistant. Click on “Continue” to proceed.

How To Run Voice Activated Google Assistant on Windows PC? (13)

Step 13. Click on the “Download” button to download the credential JSON file to your system. Save it for later use.

Step 14. After downloading is finished, click on “Done” and go to “Open Activities”.

How To Run Voice Activated Google Assistant on Windows PC? (14)

Step 15. Toggle on all the controls and then again head back to the Credential page.

How To Run Voice Activated Google Assistant on Windows PC? (15)

NOTE: This here ends the configuration of the Google Assistant API. Now we will install it on Windows PC.

Step 16. Launch the Command prompt with admin rights, enter the following command and press the “Enter” key:

py -m pip install google-assistant-sdk[samples]

pip install –upgrade google-auth-oauthlib[tool]

How To Run Voice Activated Google Assistant on Windows PC? (16)

This will download all the necessary dependencies to run the Google cloud project on your Windows PC. It may take a lot of time, depending upon your internet speed. So be patient and don’t close the cmd Windows.

Step 17. Now enter the following command and hit “Enter”:

google-oauthlib-tool –client-secrets path/to/XXXXX.json –scope https://www.googleapis.com/auth/assistant-sdk-prototype –save –headless

How To Run Voice Activated Google Assistant on Windows PC? (17)

All that you have to do is to replace the command portion “path/to/XXXXX.json” with the real path and name of the JSON file you just downloaded a little while ago.

Now the execution of the command will display a URL as a result. Just copy it and paste it on your browser. Choose your Google account and consequently, you will receive an authentication code.

Step 18. Now copy the authentication code and paste it into the command prompt. Press “Enter” and you are seemingly done for now.

NOTE: This is the end of the installation of Google Assistant on your Windows 10 PC. But now you have to test the installed Google Assistant. To do that, continue reading the steps.

Step 19: Now firstly, turn on your system speakers and we have to check if Google Assistant can record your audio or not. to do this enter the following command in cmd and hit “Enter”:

python -m googlesamples.assistant.audio_helpers

This command will record 10 seconds of your voice and will play it back to you also.

Step 20. Next, enter another command shown below.

python -m googlesamples.assistant

Once you run this command, in few seconds, it will display a message “press enter to send a new request”. Just hit “enter” and you are good to go. If any warning notification turns up, simply avoid it.

How To Run Voice Activated Google Assistant on Windows PC? (18)

So if you have successfully done everything as explained till this step, that means Google Assistant is successfully installed on your Windows PC and it is fully working.

Conclusion:

So once it’s all done, you can say “Hey, Google!” and anything, and it will follow your dictate. Amazing isn’t it? You will find, that even if its not a pre-installed virtual voice assistant, it works much better than the Cortana itself. And that’s the significance of GOOGLE after all.

Check out other articles, and keep visiting.

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This