đ Wyoming Event Types
Each Wyoming message is defined by its type. This section documents all standard event types, grouped by functionality.
đ Audio Streaming Events
audio-start
Marks the beginning of an audio stream.
{ "type": "audio-start", "data": { "rate": 16000, "width": 2, "channels": 1 } }
Python:
from wyoming.audio import AudioStart
start = AudioStart(rate=16000, width=2, channels=1)
event = start.event()
audio-chunk
Contains a chunk of raw PCM audio.
{ "type": "audio-chunk", "payload_length": 3200 }
Payload: 3200 bytes of PCM audio.
Python:
from wyoming.audio import AudioChunk
chunk = AudioChunk(audio=b"...").event()
audio-stop
Marks the end of an audio stream.
{ "type": "audio-stop" }
Python:
from wyoming.audio import AudioStop
stop = AudioStop().event()
đ§ Speech Recognition (ASR)
transcribe
Start transcribing an audio stream.
{ "type": "transcribe", "data": { "name": "whisper", "language": "en" } }
transcript
Returns recognized text.
{ "type": "transcript", "data": { "text": "hello world", "confidence": 0.95 } }
đŖī¸ Text to Speech (TTS)
synthesize
Request speech audio from text.
{ "type": "synthesize", "data": { "text": "Hello!", "voice": { "language": "en" } } }
Response: stream of audio-start, audio-chunk, audio-stop
đ¯ Wake Word Detection
detect
Begin wakeword detection (streaming)
{ "type": "detect", "data": { "names": ["hey_lucy"] } }
detection
Wake word was detected.
{ "type": "detection", "data": { "name": "hey_lucy" } }
not-detected
Audio ended without a detection.
đ§ Voice Activity Detection (VAD)
voice-started
Detected speech start
voice-stopped
Detected speech end
đ¤ Intent Recognition
recognize
Request to identify user intent from text.
intent
Returns structured result (intent name, entities)
not-recognized
Fallback when nothing matched.
đ ī¸ Intent Handling
handled
Indicates successful command handling
not-handled
Indicates failure or no response
âšī¸ Service Discovery
describe
Client asks for capabilities
info
Server responds with available ASR, TTS, Wake, etc.
âąī¸ Timer Events (see next file)
timer-started,timer-updated,timer-finished,timer-cancelledâĄī¸ Full details intimers.md
â Errors
error
Used to indicate a failure:
{ "type": "error", "data": { "message": "Invalid format" } }
đ°ī¸ Satellite Events
For coordinating remote microphone devices.
run-pipelinesatellite-connectedstreaming-started/streaming-stopped
(Details in pipeline.md)