pip install - upgrade google-auth-oauthlib [tool]
The above command will load the required dependencies in order to run the Google Cloud project. This process will take longer depending on your Internet speed.
google-oauthlib-tool –client-secrets path / to / XXXXX.json –scope https://www.googleapis.com/auth/assistant-sdk-prototype –save –headless
Change the path / to / XXXXX.json with the real path and the JSON file name you downloaded earlier.
When running the above command you will get the URL, copy and paste it into the browser. Select a Google account and you will receive an authentication code.
Copy the authentication code and paste it into Command Prompt, then press Enter .
To check the Google Assistant, turn on your system speaker. After installing Google Assistant, the first thing you need to check is whether Assistant can record audio from the microphone.
To test, run the following command in Command Prompt. It will record 10 seconds and play for you.
python -m googlesamples.assistant.audio_helpers
After you have finished checking the audio recording, you can move on to the next step.
python -m googlesamples.assistant
After running the command, wait for a few seconds when the Command Prompt appears and press enter to send a new request , press the Enter button. If you see any warning, just ignore it.
So Google Assistant has been successfully installed on your Windows computer. This Google Assistant API supports all commands that Google Assistant supports on Google Home and Android devices.
I wish you all success!