WebSocket
The channel for sending TTS requests and receiving audio responses. Use this WebSocket endpoint to stream text and receive audio in real time.
Synthesize speech with ultra-low latency over a websocket connection. This endpoint serves the Falcon model only.
Choose the Base URL from a table below (Global URL or a Region URL)
Note: Global URL auto-routes to the nearest region. Use it unless you
have a data-residency requirement. api.murf.ai is a
legacy alias that always resolves to us-east and does not
geo-route.
Handshake
Headers
Query parameters
Your Murf API key. Also accepted as api-key, or as an api-key header.
A rejected key completes the HTTP upgrade and then closes the connection
with code 1008 (policy violation) — it is not an HTTP 401.
Only falcon-2.1 is served over WebSocket. The earlier identifiers falcon-2,
falcon2 and falcon are still accepted (case-insensitive) and use Falcon 2.1.
Gen2 is not available on this endpoint.
Audio format of the output. Valid values are WAV, MP3, FLAC, ALAW, ULAW, PCM.
Use PCM to receive headerless little-endian 16-bit samples, avoiding the
placeholder WAV header on the first chunk.