assistant.google

class platypush.backend.assistant.google.AssistantGoogleBackend(credentials_file='/home/blacklight/.config/google-oauthlib-tool/credentials.json', device_model_id='Platypush', **kwargs)[source]

Google Assistant backend.

It listens for voice commands and post conversation events on the bus.

WARNING: The Google Assistant library used by this backend has officially been deprecated: https://developers.google.com/assistant/sdk/reference/library/python/. This backend still works on most of the devices where I use it, but its correct functioning is not guaranteed as the assistant library is no longer maintained.

Triggers:

Requires:

  • google-assistant-library (pip install google-assistant-library)

  • google-assistant-sdk[samples] (pip install google-assistant-sdk[samples])

__init__(credentials_file='/home/blacklight/.config/google-oauthlib-tool/credentials.json', device_model_id='Platypush', **kwargs)[source]
Parameters
run()[source]

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.

start_conversation()[source]

Starts an assistant conversation

stop_conversation()[source]

Stops an assistant conversation