{
"type": "init",
"model": "murftts:falcon",
"voice": "en-US-natalie",
"config": {
"sample_rate": 24000,
"encoding": "mp3",
"channel_type": "MONO"
}
}{
"type": "text",
"text": "Hello, this is a test of text-to-speech synthesis."
}{
"type": "flush"
}{
"type": "clear"
}{
"type": "close"
}{
"type": "keepalive"
}{
"type": "ready",
"session_id": "sess_tts_abc123"
}{
"type": "audio",
"data": {
"audio": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA...",
"content_type": "audio/mp3"
}
}{
"type": "segment_start",
"segment_id": "seg_001"
}{
"type": "segment_end",
"segment_id": "seg_001"
}{
"type": "flushed"
}{
"type": "cleared"
}{
"type": "audio_end",
"duration": 3.5
}{
"type": "error",
"code": "provider_error",
"message": "Provider returned an unexpected error"
}Text-to-Speech API for generating speech from text using Murf Falcon. High-quality multilingual TTS with multiple encodings and sample rates. Establishes a WebSocket connection for real-time text-to-speech using the unified SLNG TTS protocol.
{
"type": "init",
"model": "murftts:falcon",
"voice": "en-US-natalie",
"config": {
"sample_rate": 24000,
"encoding": "mp3",
"channel_type": "MONO"
}
}{
"type": "text",
"text": "Hello, this is a test of text-to-speech synthesis."
}{
"type": "flush"
}{
"type": "clear"
}{
"type": "close"
}{
"type": "keepalive"
}{
"type": "ready",
"session_id": "sess_tts_abc123"
}{
"type": "audio",
"data": {
"audio": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA...",
"content_type": "audio/mp3"
}
}{
"type": "segment_start",
"segment_id": "seg_001"
}{
"type": "segment_end",
"segment_id": "seg_001"
}{
"type": "flushed"
}{
"type": "cleared"
}{
"type": "audio_end",
"duration": 3.5
}{
"type": "error",
"code": "provider_error",
"message": "Provider returned an unexpected error"
}API key issued by SLNG. Pass as Authorization: Bearer <token> in the WebSocket upgrade request headers.
GET
Target world part override. Auto-selected if not provided. Available world parts: eu.
euInitialize a Murf Falcon TTS session with provider-specific configuration.
Send text to synthesize into audio output.
Force any buffered text/audio to be finalized and delivered.
Clear any queued text/audio from the current session.
Close the session and stop any further audio.
Keep the WebSocket connection alive during silence.
Indicates the session is ready to receive messages.
Audio response from Murf Falcon TTS with metadata.
Signals the start of a synthesized segment.
Signals the end of a synthesized segment.
Acknowledges that buffered output was flushed.
Acknowledges that queued output was cleared.
Signals the end of audio generation.
Indicates an error occurred during synthesis.
Was this page helpful?