class platypush.backend.stt.SttBackend(plugin_name: str, retry_sleep: float = 5.0, *args, **kwargs)[source]

Base class for speech-to-text backends.

__init__(plugin_name: str, retry_sleep: float = 5.0, *args, **kwargs)[source]
  • plugin_name – Plugin name of the class that will be used for speech detection. Must be an instance of platypush.plugins.stt.SttPlugin.

  • retry_sleep – Number of seconds the backend will wait on failure before re-initializing the plugin (default: 5 seconds).


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