Google Assistant is not directly available for PC, but there is a trick to install it. Here is a guide on how to use Google Assistant on Windows, macOS, and Linux. The process is a slightly complex one, so make sure you understand it completely before following it.
How to Install Google Assistant in my PC Using Python
Step 1. You will have to install Python to use Google Assistant on Windows, macOS or Linux.Do search for the steps online in case you haven’t downloaded Python before.
Step 2. Next, go to Windows File Explorer and open the C: Drive or whichever is your PC’s main drive and create a new folder. Keep the title as ‘GoogleAssistant’ with no spacing between the words.
Step 3. Once this is done, go to ‘Google Cloud Platform’ on your web browser and in the ‘Projects’ page, tap on ‘Create Project’.
Step 4. Give a name to the project (preferably WinGoogleAsssistant) and note down the project ID for reference in the future. Tap on ‘Create’ to save the project.
Step 5. Now go to a separate tab in the browser and open ‘Google Assistant APIs’. There you will see the option to ‘Enable’ Google Assistant. Select that option and in the next window, click on ‘Create Credentials’.
Step 6. In the next step, you will be asked three questions – which API are you using, where will you be calling the API from, and what data will you be accessing?Choose Google Assistant API, Other UI and User Data respectively as answers.
Step 7. Next when you tap on ‘What credentials do I need?’, a dialogue box asking you to ‘Set up OAuth Consent Screen’ will appear. Click on ‘Set Up Consent Screen’.
Step 8. In the Credentials window, select the ‘Internal’ Application type, enter ‘WinGoogleAssistant’ as the Application name and Save the changes.
Step 9. Click on the ‘Create Credentials’ dropdown menu and tap on ‘Help me choose’. Next, you will be suggested to create an OAuth 2.0 client ID. In the box provided below, enter ‘WGACredentials’ and click on ‘Create OAuth Client ID. Once the credentials have been added, tap on ‘Done’.
Step 10. Click on the Download icon next to the Client ID in the next window. Choose the Google Assistant folder created in Step 2 to save the file. Note that the file downloaded should be a JSON file.
Step 11. The next segment of the process on how to use Google Assistant on PC involves opening the Command prompt. Hold the Windows key + Rtogether and then enter cmd in the dialogue box that appears.Then, type this in the Command Prompt:
py -m pip install google-assistant-sdk[samples]
Some files will begin to download that will help in running the project effectively.
Step 12. Once the download has finished, type the following command:
py -m pip install –upgrade google-auth-oauthlib[tool]
Step 13. Now, go to the JSON file in the ‘GoogleAssistant’ folder and right click on it to open its Properties. Copy the file name given under the ‘General’ section.
Step 14. Go back to Command Prompt and enter:
google-oauthlib-tool –client-secrets C:\GoogleAssistant\
Paste the file name copied earlier, press the spacebar once and then enter the following syntax:
–scope https://www.googleapis.com/auth/assistant-sdk-prototype –save –headless
Step 15. The response will provide you a URL and ask you to enter an authorization code. Copy the URL and paste it in a new tab of the browser to ascertain the code. Use the same Google account with which you created the credentials and configured the API assistant.
Step 16. Next, click on ‘Allow’ when ‘WinGoogleAssistant’ requests for permission to access your Google account. Copy and paste the unique code thus generated in the Command Prompt and tap Enter. You will receive a message that the credentials have been saved.
Step 17. Now that you know a major part of how to use Google Assistant, it is important to test it by entering this command:
py -m googlesamples.assistant.grpc.audio_helpers
A 5-second audio will be played back by your PC. You can also try using the following command to talk to the Google Assistant:
py -m googlesamples.assistant
Start speaking once the Command Prompt displays this message –“press Enter to send a new request”. The Command Prompt will play back a response after showing the transcript of your audio input.
Step 18. The penultimate step on how to install Google Assistant in my PC requires you totype the following and press enter. Make sure to keep the Project ID (created in Step 4) handy.
Add a space, type the ID, add a space again and paste this:
register-model –manufacturer “Assistant SDK developer” –product-name “Assistant SDK light” –type LIGHT –model “GA4W”
Step 19. Press Enter and your Google Assistant setup is done.
You can also get the desktop client through GitHub, etc. and follow the procedure on how to use Google Assistant by installing the same.
You Might Also Like – Google Assistant for PC: Download Now