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
WSS
https://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.
channel_type
The channel type for audio output.
format
Audio format of the output. Valid values are MP3, WAV, PCM.
Send
setVoiceConfigurationOrInitializeContext
OR
sendText
OR
setAdvancedSettings
OR
clearContext
Receive
audioOutput
OR
finalOutput