platypush.backend.assistant

class platypush.backend.assistant.AssistantBackend(tts_plugin: Optional[str] = None, tts_args: Optional[Dict[str, Any]] = None, **kwargs)[source]
__init__(tts_plugin: Optional[str] = None, tts_args: Optional[Dict[str, Any]] = None, **kwargs)[source]

Default assistant backend constructor.

Parameters:
  • tts_plugin – If set, and if the assistant returns the processed response as text, then the processed response will be played through the selected text-to-speech plugin (can be e.g. “tts”, “tts.google” or any other implementation of platypush.plugins.tts.TtsPlugin).
  • tts_args – Extra parameters to pass to the say method of the selected TTS plugin (e.g. language, voice or gender).