The overwhelming popularity of voice assistants inspires users to experience them on their desktop computers and laptops as well. The case here is Google Assistant. The virtual assistant is an intelligent response to Siri and Alexa from Apple and Amazon respectively. If you can put up with some primary use of terminal on your computer, you can quickly get Google Assistant on Windows and macOS.
On your Mac, you have to use your Terminal, and on Windows PC, you need to open Command Prompt to experience Google Assistant. Even if you are new to Terminal or Command Prompt, you should not be apprehensive about the two, as you just have to copy and paste the commands already written in this tutorial. Though the process to use Google Assistant on Windows or Mac is simple, you need to be careful while following the steps as your single mistake can collapse the castle.
How to Install and use Google Assistant on Mac and Windows Computers
What do you need to get Google Assistant?
Before you start using Google Assistant on your Windows and macOS, you should know a few necessary things:
- On your macOS, you will have to use Terminal, and on your Windows computer, you need Command Prompt to set up Google Assistant.
- You need Python 3 installed on your Mac or Windows computer. Note that most Macs come with Python by default, but then they need to check the version. It should be Python 3.x on your Mac. You can download this version from Python website.
After having these two things, it’s time to configure Google Assistant on your Mac and Windows computers.
Step #1. Open Google Cloud Platform on your Mac or Windows computer.
Step #2. Next, click on Create Project.
Step #3. Here, you need to give a suitable name to your project; for fun, I have used SiriCompetitor as the project name. Then click on Create button.
Step #4. When the process is over, click on the bell icon and then click on notification related to your project.
Step #5. Now head over to this page, and then click on ENABLE.
Step #6. Google asks you to create Credentials to use the API. Click on Create credentials button in blue.
Step #7. You are now on ‘Add credentials to your project’ page, where you have to select ‘Other UI (for example, Windows, CLI)’ under “Where will you be calling the API from?”
Next, choose “User Data” in “What data will you be accessing?” And then click on “What credential do I need?”
Step #8. It’s time to create a client id; give a suitable name and then click on “Create client ID.”
Step #9. You will be asked to provide your project name in the field of “Product name as shown to users”; next, click Continue.
Step #10. You have an option to download credentials; however, you can do this later and click on Done.
Step #11. Open Activity Controls and check that all the options are turned on.
Next, you can see the client ID you have created earlier. You need to click on the download button on the right of the screen. A JSON file will be downloaded on your computer; you should save this file somewhere you can access it quickly from.
Use Google Assistant on Mac and Windows Computer
You have successfully followed the procedure to set up Google Assistant, and now it is time to test the virtual assistant.
On your Mac
Open Terminal and type the following command:
python3 -m googlesamples.assistant.audio_helpers
A five-second audio recording will start on your Mac followed by a playback. If you can listen to the playback, you can use Google Assistant.
On your Windows computer
Launch Command Prompt and type this command:
python3 -m googlesamples.assistant
That’s it! You can start using Google Assistant on your Windows computer. Your Google Assistant API supports all commands you execute on your Android and Google Home.
That’s all friends!
- How to Create Google Assistant Shortcut Commands
- How to Upload Photos/Videos to Instagram from Mac and Windows PC
- How to Enable YouTube Dark Mode in Chrome on Mac or Windows PC