Audio
Receive raw audio bytes, run your own STT, and send back a transcript
Audio flows agent-side as raw bytes. The messaging system does no STT, transcoding, or VAD.
Node
Python
AudioStreamConfig
AudioChunk
AudioEncoding
Use audioAsReadable() to feed Mastra’s voice.listen():
Next steps
- Sending a response: the
Transcriptshape you send back - Worked examples: audio handling inside a browser-chat agent