WebSockets (Beta)
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.
Choose the `Base URL` from a table below (Global URL or a Region URL)
**Note**: Global URL auto-routes to the nearest region.
| Region | URL | Default Concurrency |
| ------------------------- | ---------------------------------------------- | -------------------- |
| Global (Routes to the nearest server) | `https://global.api.murf.ai/v1/speech/stream` | Region specific concurrency |
| US-East | `wss://us-east.api.murf.ai/v1/speech/stream-input` | 15 |
| US-West | `wss://us-west.api.murf.ai/v1/speech/stream-input` | 2 |
| India | `wss://in.api.murf.ai/v1/speech/stream-input` | 2 |
| Canada | `wss://ca.api.murf.ai/v1/speech/stream-input` | 2 |
| South Korea | `wss://kr.api.murf.ai/v1/speech/stream-input` | 2 |
| UAE | `wss://me.api.murf.ai/v1/speech/stream-input` | 2 |
| Japan | `wss://jp.api.murf.ai/v1/speech/stream-input` | 2 |
| Australia | `wss://au.api.murf.ai/v1/speech/stream-input` | 2 |
| EU (Central) | `wss://eu-central.api.murf.ai/v1/speech/stream-input` | 2 |
| UK | `wss://uk.api.murf.ai/v1/speech/stream-input` | 2 |
| South America (São Paulo) | `wss://sa-east.api.murf.ai/v1/speech/stream-input` | 2 |
HandshakeTry it
WSS
wss://global.api.murf.ai/v1/speech/stream-input
Headers
api_key
Your Murf API key.
Query Parameters
api_key
Your Murf API key.
model
The model to use for audio output. Defaults to FALCON for all the regions except US-East.
Allowed values:
sample_rate
Valid values are 8000, 24000, 44100, 48000. Defaults to 24000 for Falcon model and 44100 for Gen2 model.
channel_type
The channel type for audio output.
format
Audio format of the output. Valid values are MP3, FLAC, WAV, ALAW, ULAW, OGG, PCM.
Send
setVoiceConfigurationOrInitializeContext
OR
sendText
OR
setAdvancedSettings
OR
clearContext
Receive
audioOutput
OR
finalOutput