platypush.message.event.stt

class platypush.message.event.stt.ConversationDetectedEvent(speech: str, *args, **kwargs)[source]

Event triggered when speech is detected after a hotword.

class platypush.message.event.stt.HotwordDetectedEvent(hotword: str = '', *args, **kwargs)[source]

Event triggered when a custom hotword is detected.

__init__(hotword: str = '', *args, **kwargs)[source]
Parameters:hotword – The detected user hotword.
class platypush.message.event.stt.SpeechDetectedEvent(speech: str, *args, **kwargs)[source]

Event triggered when speech is detected.

__init__(speech: str, *args, **kwargs)[source]
Parameters:speech – Speech detected, as a string
class platypush.message.event.stt.SpeechDetectionStartedEvent(*args, **kwargs)[source]

Event triggered when the speech detection engine starts.

class platypush.message.event.stt.SpeechDetectionStoppedEvent(*args, **kwargs)[source]

Event triggered when the speech detection engine stops.

class platypush.message.event.stt.SpeechStartedEvent(*args, **kwargs)[source]

Event triggered when speech starts being detected.

class platypush.message.event.stt.SttEvent(*args, **kwargs)[source]

Base class for speech-to-text events

__init__(*args, **kwargs)[source]

Params: target – Target node [String] origin – Origin node (default: current node) [String] id – Event ID (default: auto-generated) kwargs – Additional arguments for the event [kwDict]