# ElevenLabs

> Generate lifelike speech from text with ElevenLabs AI voices.

App · Voice AI · 1 action. Web page: https://docs.lodol.com/docs/integrations/elevenlabs

## Actions

### Convert text to speech

Synthesize text into speech with a chosen voice. The generated audio is saved to your workspace's file storage; the action returns a document reference and a download URL so a later step can send, upload, or attach the audio file.

**Inputs**

- Voice (`voice_id`, text, required): The voice to speak with, from your ElevenLabs account.
- Text (`text`, text, required): The text to convert to speech.
- Model (`model_id`, text): The model to use. Leave empty for the default.
- Output format (`output_format`, text): Audio output format. Leave empty for the default MP3.
- Language (`language_code`, text): Optional language to enforce. Supported by the multilingual models only; leave empty to auto-detect.

**Outputs**

- `byte_size` (number)
- `content_type` (text)
- `document_ref` (text)
- `documents` (list)
- `model_id` (text)
- `output_format` (text)
- `url` (text)
- `voice_id` (text)

**Example output**

```json
{
  "byte_size": 20480,
  "content_type": "audio/mpeg",
  "document_ref": "doc_9f8e7d6c5b4a3210",
  "documents": [
    {
      "content_type": "audio/mpeg",
      "document_ref": "doc_9f8e7d6c5b4a3210",
      "filename": "elevenlabs-speech.mp3",
      "size_bytes": 20480,
      "url": "/actions/core/serve-document/doc_9f8e7d6c5b4a3210?teamId=6512a1b2c3d4e5f600000001"
    }
  ],
  "model_id": "eleven_multilingual_v2",
  "output_format": "mp3_44100_128",
  "url": "/actions/core/serve-document/doc_9f8e7d6c5b4a3210?teamId=6512a1b2c3d4e5f600000001",
  "voice_id": "21m00Tcm4TlvDq8ikWAM"
}
```
