Besttechindia is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Learn more.

How to Get Google Assistant for Windows PC (2020)

Edited By Piyush Kashyap, Reviewed By Gulshan

The introduction of Google Assistant is a revolutionary step in understanding the needs and requirements of the people.

You may easily use it for numerous functions with simple voice commands. It can play music, send a message, watch the picture, get news updates, get directions, track calories, control home security and much more.

It is just like your personal assistant, which can manage your work and individual life schedules. It works perfectly, so you don’t miss out on the special moments in life.

Google Assistant is available on phones, home devices, speaker, watch and even cars. But unfortunately, the desktop version is yet to launch. 

You can still use the fantastic features of Google assistant on PC, with the help of a particular method. Once it is set up, you may give voice commands to your computer just like you do on Android phones.

How to Get Google Assistant for Windows PC


Requirements

For the installation of your personal Google Assistant, you need to first download Python on the computer. After you download and launch the Python installer .exe. Tap on the next page option and select the option ‘Add Python to environment variables’. Then continue with the custom installation.

Once the installation process is done, start commands terminal, and type ‘python’. This command will display the current version of Python in use.

Steps for configuring the API of Google Assistant:

  1. 1
    In Google Cloud Platform Console, you need to open the Projects page and choose “Create Project.”
  2. 2
    Decide a name for your project and pick the “Create” tab.
  3. 3
    It will create a new plan, and you will see the project configuration page.
  4. 4
    Navigate towards Google Assistant API page and tap on “Enable” at the top.
  5. 5
    You need to make new credentials for using your Google Assistant API.
  6. 6
    Tap on the “Create credentials” button and to guide you through the process you may consort to the setup wizard.
  7. 7
    From the questions list, choose “where will you be calling the API from?” and tap on “Other UI.
  8. 8
    For “What data will you be accessing?” do the selection of “User data”.
  9. 9
    Check the “What credentials do I need?” and you will get a recommendation of the creation of an OAuth 2.0 client ID. You need to choose a different title for the client ID and tap on “Create client ID.”
  10. 10
    Beneath the heading “Product name shown to users”, you may write “ Google Assistant” or a name of your choice.
  11. 11
    With “done” the task is over. Do not designate to the “download here”.
  12. 12
    Below the bullet points for OAuth 2.0 client IDs, your client ID will also appear. Check the download icon for the client_secret_XXX.json file downloading. In this, xxx is the code for your specific client ID. Next step is saving the file with the unique title “Google Assistant.”
  13. 13
    Navigate to the Activity controls page of your given account on Google and turn to one of the provided icons- “Web & App Activity”, “Voice & Audio Activity”, “Device Information”, and “Location History”. It will help your Google Assistant to read your personal information.

How to Get Google Assistant for Windows PC

Install Google Assistant sample Python project on your PC

The process to follow is given below:

  • Firstly, provide the following command at the prompt window:

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

  • A group of dependencies will get downloaded and installed by the command. They are essential for the sample Python project.
  • After their installation, enter the following command and adjust the path:
py -m googlesamples.assistant.auth_helpers --client-secrets
pathtoyourclient_secret_XXX.apps.googleusercontent.com.json
  • It will create a prompt at the command section, for visiting the given URL for authorizing the application.
  • Once you get the URL, copy-paste it on your preferable browser with the aforementioned Google account that you have used for configuring the Google Assistant API.
  • On checking the next box, a box appears that comprises the Access Token of the client.
  • Copy-paste the token on the page that requires the authorisation code. With the correct process, the credentials will be saved. 

Testing the working of Google Assistant

After the successful and precise installation of your Google Assistant on the desktop, it is mandatory to check that it can record audio with the microphone.

You may use the command below to record 5-sec audio and playing it:

  • Enter this in the given command prompt:

python -m googlesamples.assistant.audio_helpers

  • On hearing the audio in playback, then enter the below command to talk to your Google Assistant:

python -m googlesamples.assistant

  • When the given command prompt displays “press Enter to send a new request”, then tap on the Enter key to talk with your own Google Assistant.
  • After you speak, the command prompt will display a transcript of recorded audio and later, playback the response. (Ignore any warning)

Piyush

Follow me here

About the Author

Piyush Kashyap is a Ph.D student at Sant Longowal Institute of Engineering and Technology, Sangrur. He is a budding editor/ writer and has been working as a part-time reviewer for online content. He loves to read tech-based articles and has a knack for reviewing such articles He likes to stay updated about the latest trends in technology. He has also been working as a reviewer for many scientific journals. He also writes articles based on science. Know More About Piyush


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>