Google assistant is not something new, but a lot of people have been asking how they can get it running on their windows pc, and that is why I have decided to put up this article today.
In this post, you will not only learn how to download google assistant for pc you will also understand how to set it up properly.
WHAT IS GOOGLE ASSISTANT
Google Assistant or Google voice assistant, is an artificial intelligence developed by Google, to perform conversational interactions.
It is similar to Google Now; it can show information from the user’s Google account, search the Internet, set alarms, and schedule events.
It can also engage in two-way conversations.
Google Assistant voice offers voice commands, or voice search, i.e voice-activated device control, that allow users to carry out their tasks after saying “OK Google” talk like
It is Google’s own version of Apple’s Siri, Amazon’s Alexa, and Microsoft’s Cortana.
HOW TO SET UP GOOGLE ASSISTANT ON WINDOWS PC
To install and set up Google Assistant for Windows PC, the first step is to download and install Python for windows.
Ensure you check the box next to Add Python 3.8 to PATH, before installing it.
- Open the Windows File Explorer, create a New Folder in C: Drive, and name it GoogleAssistant.
- On a web browser, open Google Cloud Platform, click on Create Project and Sign in using your Google account.
- Type WinGoogleAssistant as the project name, then copy the Project-ID, and keep it in a safe place, because you will need it later.
- Then click on Create.
- Launch another tab in your and enter the Google Assistant APIs, click on Enable to turn on the Google Assistant API for the project.
- Then click on Create Credentials.
You will be required to Add credentials to your project screen, choose the responses below:
- Google Assistant API for Which API are you using?
- Other UI (e.g., Windows, CLI tool) for Where will you be calling the API from?
- Finally for What data will you be accessing choose user data.
When you are done, choose What credentials do I need?
7.Click on Set up consent screen, then change the Application Type to Internal.
8.In the Application name field, enter WinGoogleAssistant, and scroll to the bottom of your screen then click Save.
9.The next step is to select Help me choose after you have selected Create credentials.
Then follow the instructions as in step 6 above.
10.Next, type WGAcredentials in the Name field and choose to Create OAuth client ID.
11.Click on Done, when you see the download button displayed.
12.Click on the down arrow to download the JSON, then save the JSON file in the Google Assistant folder you created in Step 1 above.
13.Press Windows key + R, then type cmd in the dialog box and click Enter to open Command Prompt.
In the command prompt, copy the syntax below and paste, then click Enter.
py -m pip install google-assistant-sdk[samples]
14.Wait for the installation to be completed, before you copy the next syntax and hit Enter again
py -m pip install –upgrade google-auth-oauthlib[tool]
15.Go to C: Drive, and open the Google Assistant folder, then locate the JSON file you saved in Step 12 above.
16.Go to properties, and copy the file name
17.Go back to Command Prompt and type: 11. Right-click on the file and open it.
google-oauthlib-tool --client-secrets C:\GoogleAssistant\
paste the file name you just copied in step 16 above, click on the Space bar, then type the syntax below and click Enter.
--scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless
You’ll see command prompt running and later on, you will see a URL displayed just before a prompt where it asks you to Enter the authorization code.
18.Copy the URL, and paste in a new browser. Login using the same Google account details.
19.Click Allow on the dialog to allow access to Win Google Assistant.
20.You will see a long string of letters and numbers,( This is the Authorization code requested for in Step 16) in the next window, copy those characters, and paste in the Command Prompt window
21. Press Enter, and ‘credentials saved’ will be displayed.
Boom! you have Google Assistant set up on your Windows PC
The next step is to test it; to do this type
py -m googlesamples.assistant.grpc.audio_helpers.
on your CMD prompt window.
T 10 computer will record audio of 5 seconds and play it back. If you can hear the audio voice of the Google Assistant, then the set up is done.
Then, locate the Project ID you copied in Step 3 and enter it into the CMD prompt window. Press Enter.
and Tap the space bar, then type the Project ID, tap the space bar again and enter the command below then click Enter to finalise the Google Assistant setup on your Windows PC.
register-model --manufacturer “Assistant SDK developer” --product-name “Assistant SDK light” --type LIGHT --model “GA4W”.
24 If you will like to have Google Assistant with the push to talk functionality, input the following command into the CMD prompt window and click Enter:
py -m googlesamples.assistant.grpc.pushtotalk --device-model-id “GA4W” --project-id
25. Finally, press the Enter key while the program is active and say what you want Google Assistant to do.
Leave a Reply