banner



How To Install Google Assistant In Windows 10 Pc

How to get Google Banana on your Windows, Mac, or Linux Machine

Google Banana is Google'south answer to Amazon's Alexa smart domicile banana. Initially only available with limited functionality in the Google Allo application, Google Assistant afterward rolled out with the Google Home and Pixel smartphones to bring the full power of Google'due south assistant to consumers.

After a few months of waiting, smartphones running Android half-dozen.0+ also received Google Assistant, and just a few days ago Google launched the Google Banana SDK which allows Assistant to be run on basically any platform. Today, nosotros will show you how to install Google Assistant onto your Windows, Mac, or Linux machine using Python.

Annotation: at this point in time, this is purely for educational purposes. At that place'southward no fancy GUI for yous to play with, and installing Assistant requires you lot to apply the command line.


Get Google Assistant on Windows/Mac/Linux Machines

Yous'll demand to have Python installed no matter whether or not you are using Windows, macOS, or a GNU/Linux distribution. Installation is fairly uncomplicated and already well-documented past the Python wiki, so nosotros won't go into many details about getting Python upwardly and running on your auto.

Once y'all've got Python working on your machine (y'all tin ostend it is working past opening up a final/command prompt so just typing python.) If you see the concluding/command prompt return the current Python version on your calculator, and then you're gilded.

Side by side, before we can install the necessary files to go Google Assistant working, nosotros need to enable admission to the Google Assistant API in the Google Cloud Platform Console.


Configure the Google Banana API

What follows are step-by-step instructions walking y'all through the process to enable the Google Assistant API in the Cloud Platform Console and then you can access Google Assistant through the Python plan. All of these steps are platform independent, meaning that the steps are the same for Windows, macOS, and GNU/Linux users.

  1. Become to the Projects page in the Google Deject Platform Console.
  2. Click on "Create Project" upward top.
  3. Name the Projection "My Google Assistant" and click "Create."
  4. Wait a few seconds for the Console to 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'due south configuration page.
  5. Click this link to go straight to the Google Assistant API page. Upward top, click "Enable."
  6. Google will warn you that you lot demand to create credentials to use this API. Click "Create credentials" in the top correct. This will have you to a setup wizard page where Google helps you effigy out what kind of credentials you need to use this API.
  7. Under "where will yous exist calling the API from", select "Other UI (due east.g. Windows, CLI tool)". For "what information volition y'all be accessing" select the "User data" circle. Now tap "what credentials exercise I need?"
  8. Google should recommend that you create an OAuth 2.0 customer ID. Name the Client ID anything you want, for case, your name + Desktop. Once done picking a proper name, click "create client ID."
  9. Under "product name shown to users" enter "My Google Assistant." Click go along.
  10. Click "washed." There'due south no need to click download here as we but need the client secret, which we will download next.
  11. Now nether the list of OAuth 2.0 client IDs, y'all should see the client ID you just fabricated. All the way to the correct, click on the download icon to download the client_secret_XXX.json file, where 'XXX' is your client ID. Relieve this file anywhere on your computer, ideally in a new binder chosen "googleassistant."
  12. Go to the Activity controls page for your Google account and make sure that "Web & App Activeness", "Location History", "Device Information", and "Voice & Audio Activity" are enabled. This is so Google Assistant tin can actually read you personalized information.

Nosotros take now created a mechanism for a client, in this case our Windows/Mac/Linux machine, to access the Google Assistant API under our Google account. Adjacent nosotros need to set up the client that will access the Google Banana API.

Install the Google Assistant Sample Python Project

Although Google recommends that you gear up Python virtual environments to isolate the Google Assistant SDK and its dependencies from other Python system packages, we're going to skip this step equally it's unlikely that you'll play effectually with this for more than than a few minutes. You tin hands go back to the Deject Platform Console and disable the API if you're worried near the potential for other programs to access your Google account.

Open up a terminal/command prompt window and go through the following steps. Commencement, enter this command:

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

You should encounter a whole bunch of dependencies being downloaded and installed when you enter this control. These are needed for the sample Python projection to work. Wait for information technology to finish.

In one case it's done, adjacent enter the following command (brand certain to adjust the path):

          py -1000 googlesamples.assistant.auth_helpers --client-secrets path\to\your\client_secret_XXX.apps.googleusercontent.com.json        

In the control prompt, yous volition come across a response telling you to visit a URL in guild to authorize the application.

Re-create and paste this URL into your browser. Select the aforementioned Google account that y'all used to configure the Google Banana API. On the next page, yous will see a text box that contains your client's Access Token.

Copy that Access token and paste information technology into the command prompt where it asks yous for the authorization lawmaking. If washed correctly, y'all will encounter a response that your credentials have been saved.


Exam the Google Assistant

The first thing you'll want to test is whether or not Google Assistant is able to record sound from your microphone. Enter the following command into a control prompt, which will record 5 seconds of audio and play it back to yous:

          python -grand googlesamples.assistant.audio_helpers        

If you hear your audio played dorsum to you, and so enter this command to begin talking to Google Assistant:

          python -k googlesamples.assistant        

Expect for the command prompt to say "press Enter to send a new asking", then press Enter to begin talking to Google Assistant. Subsequently you're done speaking, the command prompt volition brandish a transcript of what you only stated and and so play back the response. If you see a warning afterwards, just ignore information technology.

Have fun playing with Google Assistant on your Windows, macOS, or GNU/Linux machine! I played with information technology for merely a few minutes before getting bored with it. It'southward not particularly useful in this format, just it is a very quick demonstration of the possibilities that the new Google Assistant SDK represents. Perhaps we may see desktop apps or browser extensions taking reward of this functionality in the nearly future.

Source: https://www.xda-developers.com/how-to-get-google-assistant-on-your-windows-mac-or-linux-machine/

Posted by: williamscones1936.blogspot.com

0 Response to "How To Install Google Assistant In Windows 10 Pc"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel