Install Google Assistant in Windows 10 – Google Assistant is the Google’s release of its Competitor Amazon’s Alexa. Currently Google Assistant is available with very limited functionalities in Google’s Allo Android Application, Google is Rolling out it’s new update with Assistant for Google Home and Pixel smartphones.
Table of Contents
- 1 Install Google Assistant in Windows 10
- 1.1 Installing Python Environment
- 1.2 Configure Google Assistant API
- 1.3 Creating New Project in Google Cloud Platform Console
- 1.4 Enabling Google Assistant APIs
- 1.5 Getting Credentials for the API
- 1.6 Install the Google Assistant Sample Python Project
- 1.7 Authorizing the Google Assistant API
- 1.8 Testing the Google Assistant
- 1.9 Conclusion
- 1.10 From the Editor Desk
Install Google Assistant in Windows 10
Installing Python Environment
For Running Google Assistant in your Windows 10 Machine you need to have Python on your system. Not having python ?? Simply Install it right now.
Install Python in Windows 10
Once you’ve installed Python on your computer. It’s time to Check whether it properly installed or not.
Open Command Prompt and type CMD
and type python and Hit the Enter Button.
Configure Google Assistant API
These step-by-step instructions helps you through the process to enable the Google Assistant API in the Google Cloud Platform Console so you can access Google Assistant through the Python program.
Creating New Project in Google Cloud Platform Console
Go to the Projects page in the Google Cloud Platform Console.
Click on the CREATE PROJECT Button
Name the Project “My Google Assistant” and Click on the Create Button.
Wait few seconds, The Console will create your new Project. You should see a spinning progress icon in the top right. After it is done creating your Project, you will be brought to your Project’s configuration page.
Enabling Google Assistant APIs
Click this link to go straight to the Google Assistant API page. Up top, click “Enable.”
Getting Credentials for the API
Google will warn you that you need to create credentials to use this API. Click “Create credentials” in the top right.
This will take you to a setup wizard page where Google helps you figure out what kind of credentials you need to use this API.
In next step Under “where will you be calling the API from”, select “Other UI (e.g. Windows, CLI tool)“. For “what data will you be accessing” select the “User data” circle. Now tap “what credentials do I need?”
Google should recommend that you create an OAuth 2.0 client ID. You can choose name of your choice.
Under “product name shown to users” enter any name and Click continue.
Click the Done Button. and Click Download Button to download JSON file.
Now Go to the Activity controls page for your Google account and make sure that “Web & App Activity”, “Location History”, “Device Information”, and “Voice & Audio Activity” are enabled. This is so Google Assistant can actually read you personalized information.
We have now created a mechanism for our system, in this case our Windows 10 machine, to access the Google Assistant API under our Google account. Next we need to set up the client that will access the Google Assistant API.
Install the Google Assistant Sample Python Project
Open the Command Prompt and Enter the Below Code and Press Enter.
py m pip install google-assistant-sdk[samples]
This will download all the Required Bunch of Dependencies which helps out to run this Project. This will take a little bit of seconds based on your Internet speed.
Once it’s Done. Enter this Command to Navigate to your Downloads Folder.
Copy the JSON file name with .json
Authorizing the Google Assistant API
Replace the Below XXXXXXXX with your File Name you have copied in the Above step.
py -m googlesamples.assistant.auth_helpers --client-secrets XXXXXXX
Now Hit the Enter Button.
Copy the URL mentioned in the Command Prompt and Visit with the Browser.
It will Ask your Email and Password and Seeks for your Permission.
Copy the Authorization code And Paste it in the Command Prompt and Hit the Enter Button.
Testing the Google Assistant
Turn ON your Speakers 😛
The first thing you’ll want to test is whether or not Google Assistant is able to record audio from your microphone. Enter the following command into a command prompt, which will record 5 seconds of audio and play it back to you:
python -m googlesamples.assistant.audio_helpers
If you hear your audio played back to you, then enter this command to begin talking to Google Assistant:
python -m googlesamples.assistant
Wait for the command prompt to say “press Enter to send a new request”, then press Enter to begin talking to Google Assistant. After you’re done speaking, the command prompt will display a transcript of what you just stated and then play back the response. If you see a warning afterwards, just ignore it.
That’s All !! You have Successfully install Google Assistant in your Windows 10 PC. Let’s have some Fun 😛
From the Editor Desk
Personally, I Loved Google Assistant. It’s totally kinda fun. If you have problem while installing feel free to comment below 🙂
Google Assistant for Windows 10
- Configuration is Quiet Tough
- Little Bit fast
Sharing is Caring 🙂
Thanks for your Feeback. It will helps us to improve our Article quality