Receiving Audio Data
- Connect to
wss://websocket.cluster.resemble.ai/stream - Send a synthesis request (JSON payload)
- Stream audio frames (JSON or binary)
- Wait for the terminal
audio_endmessage
Request Payload
JSON Frames
Binary Frames
When binary_response = true, frames contain contiguous audio bytes. Include a WAV header (default) or set no_audio_header = true if you want raw PCM chunks.
Termination Message
Handle the terminal message to cleanly stop playback and reset application state.
