How to Install Google Assistant on Windows 10: Google Assistant is a virtual personal assistant rolled out by Google to Android devices in order to enter the market of AI assistants. As of today, there are many AI assistants out there claiming to be the best like, Siri, Amazon Alexa, Cortana, etc but by far Google Assistant is one of the best available on the market. The only problem with Google Assistant is that it’s not available on PC, it’s only available on mobile and smart home devices.
Now in order to get Google Assistant on PC, you need to follow command line instructions which are currently the only way to get it on PC. Anyway, without wasting any time let’s see How to Get Google Assistant on Windows 10 with the help of the below-listed guide.
Table of Contents
How to Install Google Assistant on Windows 10
Make sure to create a restore point just in case something goes wrong.
1.You just need to download Python on your PC.
2.Download Python 3.6.4 from the link then double-click on python-3.6.4.exe to run the setup.
3.Checkmark “Add Python 3.6 to PATH” then click on Customize installation.
4.Make sure everything is checked in the window then click Next.
5.On the next screen just make sure to checkmark “Add Python to environment variables“.
6.Click Install then wait for Python to get installed on your PC.
7.Once the installation is complete restart your PC.
8.Now, press Windows Key + X then select Command Prompt (Admin).
9.Type the following command into cmd and hit Enter:
10.If the above command will return the current Python version on your computer then you have successfully installed Python on your PC.
How to Install Google Assistant on Windows 10: Configure the Google Assistant API
With this step, you can use Google Assistant on Windows, Mac or Linux, just install the python on each of these OS in order to properly configure Google Assistant API.
1.First, go to Google Cloud Platform Console website and click on CREATE PROJECT.
2.Name your project appropriately then click on Create.
3.Wait till your new project is created (you will notice a spinning circle on the bell icon at top right corner).
4.Once the process is done click on the bell icon and select your project.
5.On the project page, from the left-hand menu click on APIs & Services then select Library.
6.On library page search for “Google Assistant” (without quotes) in the search console.
7.Click on Google Assistant API search result and then click on Enable.
8.Now from the left-hand menu click on Credentials then click “Create credentials” and then select Help me choose.
9.Choose the following information in “Add credentials to your project” screen:
Question: Which API are you using? Answer: Google Assistant API Question: Where will you be calling the API form? Answer: Other UI (e.g. Windows, CLI tool) Question: What data will you be accessing? Answer: User data
10.After answering all of the above questions, click on “What credentials do I need?“.
11.Next, type the name of the Client ID (name it anything you like) and click Create Client ID.
12.Click Done then open a new tab and go to Activity controls from this link.
13.Make sure all the toggles are turned ON and then go back to Credentials tab.
14.Click the download icon in the far right of the screen to download the credentials.
Note: Save the credentials file somewhere easily accessible.
How to Install Google Assistant on Windows 10: Install the Google Assistant Sample Python Project
1.Press Windows Key + X then select Command Prompt (Admin).
2.Type the following command into cmd and hit Enter after each one:
py -m pip install google-assistant-sdk[samples]
pip install –upgrade google-auth-oauthlib[tool]
google-oauthlib-tool --client-secrets path/to/client_secret_XXXXX.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless
Note: Make sure to replace the “path_to_the_downloaded_JSON_file” with the actual path of your JSON file which you downloaded on step 14 of the previous method.
3.Once the above command finish processing, you get a URL as the output.
4.Open your Web browser and navigate to this URL, then select the same Google account that you used to configure the Google Assistant API.
5.On the next page, you will see some code which will be your client’s Access Token.
6.Copy this code and paste it into cmd. If everything goes alright you see an output which says that your credentials have been saved.
How to Install Google Assistant on Windows 10: Testing Google Assistant on PC
1.Press Windows Key + X then select Command Prompt (Admin).
2.Type the following command into cmd and hit Enter:
pip install –upgrade google-assistant-sdk[samples]
3.Now we need to test if Google Assistant can properly access your microphone. Type the below command into cmd and hit Enter, which will start a 10-second audio recording.
googlesamples-assistant-audiotest –record-time 10
4.If you can successfully hear the audio then you can move to the next step.
5.You need to Register your Device before you can start using Google Assistant on Windows 10 PC.
6.Navigate to the directory where you download the Client Secret file and start Command Prompt there and type the following command into cmd and hit Enter:
googlesamples-assistant-devicetool register-model –manufacturer “Assistant SDK developer” –product-name “Assistant SDK light” –type LIGHT –model Name_Anything
googlesamples-assistant-pushtotalk –project-id #Value# –device-model-id Name_Anything
Note: Make sure to replace Name_Anything with an actual name and #Value# with your project id.
7.To start using Google Assistant type the command into cmd and hit Enter:
8.Wait for the command prompt to output “press Enter to send a new request” then press Enter to begin talking to Google Assistant.
Note: The Google Assistant API supports every command that Google Assistant supports on Android and Google Home.
Use AutoVoice to use Google Assistant easily on PC
1.Open Command Prompt with admin rights then type the following command:
py -c "from distutils.sysconfig import get_python_lib; from urllib.request import urlretrieve; urlretrieve('https://joaoapps.com/AutoApps/Help/Info/com.joaomgcd.autovoice/googleassistant/__main__.py', get_python_lib() + '/googlesamples/assistant/__main__.py')"
2.Next, open Google Chrome and click on this link to navigate to the AutoVoice extension page.
3.Click on “ADD TO CHROME” and then under extension options, configure the wake-up command to anything you like for example Hey Google or Okay Google.
4.Next, Enable the “Always Listening” option and set the “Wake up Expression” to something different than the Wake-up Command.
Note: Wake up command is used by Google Assistant while the Wake-up Expression is to wake up the AutoVoice Extension.
5.Type the following command into cmd and hit Enter:
6.Now you can start using Google Assistant but before that, you need to wake it up by using your wake up command.
- Completely uninstall Norton from Windows 10
- How to Setup Remote Desktop Connection on Windows 10
- Automatically disable Touchpad when Mouse is connected
- How to completely uninstall McAfee from Windows 10
That’s it you have successfully learned How to Install Google Assistant on Windows 10 but if you still have any questions regarding this post then feel free to ask them in the comment’s section.