Google Assistant is one of the most widely usedvoice assistantsin the world. Although it supports a wide range of products including smartphones, smart displays,smart speakers, and othersmart home devices, support for desktop PCs has always been a hassle. Google has not shown interest in bringing Assistant to desktops and laptops, with the exception ofChromebooks. If you’re someone who’s looking for a way to use Google Assistant on your Windows, macOS, or Linux machine, there’s good news. A Chennai-based developer Melvin. L. Abraham has built anunofficial cross-platform Google Assistant desktop clientbased on Google Assistant SDK. Today, we’ll be showing the steps involved to set it up and use Google Assistant on your PC.
Use Google Assistant on Windows, macOS, and Linux
The process to enable Google Assistant can seem a bit complicated at first glance. However, if you spare a few minutes to follow the steps, you can easily set it up and start usingGoogle Assistant to control your PC. Another aspect worth mentioning is that thisclient is under development, and hence, you may experience occasional bugs while using it.
To get started,download the latest version of the desktop client from GitHubto your PC. I’m using a Windows 10 machine for this demonstration, but you can download the one based on your system’s operating system.
Install the Assistant app on your PC. At this stage, it won’t work on your PC and you should configure the backend first. To do that,open theActions Consolefrom your web browser andclick on ‘New Project.’You should log in with your Google account to access Actions Console.
Go through Google’s terms of service, choose the ‘Yes’ toggle, andclick on ‘Agree and continue.’
When the New Project popup appears,set a new project name, choose the language and your region. After filling in these details,click on the ‘Create project’ button.
Soon after you click Create project, a page to help you set it up appears. From here, scroll down and you’ll notice anoption for device registration. Click on the ‘Click here’ hyperlink.
You’ll now be taken to the device registration page.Click on the button that says ‘Register Model’to proceed further.
You should nowset the product name, manufacturer name, and device type. The developer says that you can set any device type. I’ve used TV as the device type and you can choose any other device type if you prefer. Once done, click on the ‘Register Model’ button.
We’ve now reached an important step where you should download the key file. This will be a ‘.json’ file and you’ll need this file later to configure the client.Click on the ‘Download OAuth 2.0 credentials’ buttonto download this file.
OpenGoogle Cloud Platform’s Consoleandclick on the drop-down menunext to GCP’s logo in the top-left corner.
You should now choose the project you created earlier. To do so,click on the ‘All’ tab, locate the project, andhit the Open button.
From GCP’s left side menu,click on ‘APIs & Services’to enable Google Assistant API.
From the Dashboard,click on ‘Enable Apps and Services.’You’ll now be taken to the API library page.
On API Library’s search page, type Google Assistant andchoose ‘Google Assistant API.’
6.Click the ‘Enable’ buttonto enable Google Assistant API.
When Google Assistant API’s page opens,switch to the Credentials sectionfrom the left sidebar and click on ‘Configure Consent Screen.’
When you’re in the OAuth consent screen,set ‘External’ as user typeand click on ‘Create.’
On the app information page,choose your email in the user support email section.
Without leaving the page, scroll down,enter your email address in the developer contact information box,and click on ‘Save and Continue’.
You don’t have to alter anything on the ‘Scopes’ page.Click on ‘Save and Continue’to proceed to the next step.
The same holds true for Optional Info.Click on Save and Continueto go further.
On the page that appears now,click on the ‘Add users’ buttonto add test users.
You should nowadd users with the email address. As the developer of the client points out, you can add multiple users by separating email IDs with a comma. I’ve used the email address that I’ve been using in this setup process. Once done,click on Save.
You’ve now prepared your PC to run Assistant as you’ve already completed device registration and configured the consent screen of the API. With a few additional steps, you can start using Google Assistant on your PC.
1.Open the Google Assistant clientthat you installed andhead to the Settingsby clicking on the gear icon in the top-left corner of the app.
You should now use the OAuth 2.0 credentials .json file that you previously downloaded. Click on the Browse button under the Authentication section andset the JSON file’s path to ‘Key File Path.’You canleave the ‘Saved Token Path’ empty.
After setting the path,click on the Save button.
The app will now prompt if you’d like to automatically set the saved tokens path.Click on the ‘Automatically set a path’ optionto go ahead.
You should now restart the application. To do that,click on the ‘Relaunch Assistant’ buttonin the bottom-left corner.
When the app opens up again, you’ll see a page urging you to paste the authentication code. At the same time, a new authentication page opens in your default web browser.
Switch to the authentication page andchoose your Google accountto allow permissions.
8.Click on ‘Allow’to grant Google Assistant permissions.
You’ll now see an authentication code.Click on the copy buttonto copy it to your system’s clipboard.
Switch back to the client app andpaste the codein the given field andclick on Submit.
You can now restart the Assistant to finally start using it.Click on the ‘Relaunch Assistant’ buttonto do that.
Although unofficial, the Google Assistant client is designed well. It looks elegant, has rounded corners, and you can resize the app horizontally and vertically. You can use the app to issue a variety of basic voice commands, including searches, checking the weather, and smart home controls. On Windows machines, you canaccess the client with the keyboard shortcut ‘Windows+Shift+A.’
On the app’s settings page, you get the options to tweak several aspects of the app to suit your preference. For instance, you can choose to keep the app always on top of other apps for quick access. In case you want a light theme, you can switch themes from settings.
I also tried playing a fewGoogle Assistant gamesto test its capabilities and it worked just fine. Below is the Google Assistant game ‘Are you feeling lucky?’ through Assistant on a Windows 10 PC:
However, there are a bunch of caveats. Youcan’t use the app to play musicfrommusic streaming services, play YouTube videos orNetflix moviesand TV shows, or launch apps. In addition, you can’t use the Hey Google /Ok Google commandto trigger the Assistant. Instead, you’ll have to manually open the app to type or use voice commands. That said, hotword detection is on the to-do list of the project, and it may come in the future.
If you’re interested to contribute to this open-source project, you can do so from theproject’s GitHub page. It remains to be seen if Google ever creates desktop Assistant clients for other platforms, but until that happens, you can check this out and see if you find it useful. To test all the capabilities of the app, take a look at ourbest Google Assistant tricksarticle and try them out.
Subin writes about consumer tech, software, and security. He secretly misses the headphone jack while pretending he’s better off with the wireless freedom.