Ultra-low latency TTS with industry-leading speed
eleven-flash:2 - websocket
Text-to-Speech API for generating speech from text using ElevenLabs eleven-flash. Ultra-low latency TTS with industry-leading speed
WebSocket Endpoint
Establishes a WebSocket connection for real-time text-to-speech.
Connection URL: wss://api.slng.ai/v1/tts/elevenlabs/eleven-flash:2
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
UpgradeConnectionX-Region-OverrideOptional. Specify a target region for this model. If not provided, the system will automatically select an appropriate region.
eleven-flash:2 - websocket › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type, voice | |
| type = object · requires: type, text | |
| type = object · requires: type |
typevoicemodel_ideleven-flash:2 - websocket › Responses
Switching Protocols
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type, session_id | |
| type = object · requires: type, data | |
| type = object · requires: type, segment_id | |
| type = object · requires: type, segment_id | |
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type, code, message |
typesession_idUnique session identifier
eleven-flash:2 - http
Text-to-Speech API for generating speech from text using ElevenLabs eleven-flash. Ultra-low latency TTS with industry-leading speed
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
X-Region-OverrideOptional. Specify a target region for this model. If not provided, the system will automatically select an appropriate region.
eleven-flash:2 - http › Request Body
textThe text that will get converted into speech.
voiceID of the voice to be used.
model_idIdentifier of the model that will be used.
language_codeLanguage code (ISO 639-1) used to enforce a language for the model and text normalization.
Voice settings overriding stored settings for the given voice.
output_formateleven-flash:2 - http › Responses
Successful synthesis
Audio file content