WebSockets
The channel for sending TTS requests and receiving audio responses.
Use this WebSocket endpoint to stream text and receive audio in real time.
HandshakeTry it
GET
wss://api.murf.ai/v1/speech/stream-input
Headers
api_key
Your Murf API key.
Query parameters
api_key
Your Murf API key.
sample_rate
The sample rate for audio output (optional).
channel_type
The channel type for audio output (optional).
format
The audio format for output (optional).
Send
Set Voice Configuration
OR
Send Text
OR
Set Advanced Settings
OR
Clear Context
Receive
Audio Output
OR
Final Output