stt
#
- class platypush.message.event.stt.ConversationDetectedEvent(speech: str, *args, **kwargs)[source]#
Bases:
SpeechDetectedEvent
Event triggered when speech is detected after a hotword.
- class platypush.message.event.stt.HotwordDetectedEvent(hotword: str = '', *args, **kwargs)[source]#
Bases:
SttEvent
Event triggered when a custom hotword is detected.
- class platypush.message.event.stt.SpeechDetectedEvent(speech: str, *args, **kwargs)[source]#
Bases:
SttEvent
Event triggered when speech is detected.
- class platypush.message.event.stt.SpeechDetectionStartedEvent(*args, **kwargs)[source]#
Bases:
SttEvent
Event triggered when the speech detection engine starts.
- class platypush.message.event.stt.SpeechDetectionStoppedEvent(*args, **kwargs)[source]#
Bases:
SttEvent
Event triggered when the speech detection engine stops.
- class platypush.message.event.stt.SpeechStartedEvent(*args, **kwargs)[source]#
Bases:
SttEvent
Event triggered when speech starts being detected.
- class platypush.message.event.stt.SttEvent(*args, **kwargs)[source]#
Bases:
Event
Base class for speech-to-text events
- __init__(*args, **kwargs)[source]#
- Parameters:
target (str) – Target node
origin (str) – Origin node (default: current node)
id (str) – Event ID (default: auto-generated)
timestamp (float) – Event timestamp (default: current time)
logging_level – Logging level for this event (default:
logging.INFO
)disable_web_clients_notification – Don’t send a notification of this event to the websocket clients
kwargs – Additional arguments for the event