platypush.backend.assistant.google

class platypush.backend.assistant.google.AssistantGoogleBackend(credentials_file='/home/docs/.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: This backend is deprecated, as the underlying Google Assistant library has been deprecated too: https://developers.google.com/assistant/sdk/reference/library/python/ The old library might still work on some systems but its proper functioning is not guaranteed. Please use the Snowboy backend for hotword detection and the Google Assistant push-to-talk plugin for assistant interaction instead.

Triggers:

Requires:

  • google-assistant-library (pip install google-assistant-library)
  • google-assistant-sdk[samples] (pip install google-assistant-sdk[samples])
__init__(credentials_file='/home/docs/.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